• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Password protecting subdomain directories

D

dpalme

Guest
Is it possible with Plesk, to password protect a directory under a subdomain?
 
Sure you can. Put .htaccess file in your subdomain httpdocs directory. Your .htaccess file should look like

AuthType Basic
AuthName "Password Required"
AuthUserFile /www/passwords/password.file
AuthGroupFile /dev/null
<Limit GET POST>
Require valid-user
Order Deny,Allow
</Limit>
 
Back
Top