Password-protected directory for subdomains

Created:

2016-11-16 12:45:34 UTC

Modified:

2017-04-24 11:20:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Password-protected directory for subdomains

Applicable to:

  • Plesk for Linux
  • Plesk 10.0.0 for Linux

Symptoms

Password protected directory is not working for subdomain.

Cause

It is not possible to manage password protected directories for subdomains in Plesk.

http://forum.odin.com/threads/how-do-i-password-protect-subdomain-directories.53800/

Resolution

As a workaround you can configure .htaccess file in your subdomain httpdocs directory to protect the subdomain.

.htaccess should be like below:

AuthType Basic
AuthName "Password Required"
AuthUserFile /www/passwords/password.file
Require valid-user
Have more questions? Submit a request
Please sign in to leave a comment.