• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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