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