Password-protected directory for subdomains

Refers to:

  • Plesk for Linux
  • Plesk 10.0.0 for Linux

Created:

2016-11-16 12:45:34 UTC

Modified:

2016-12-21 19:08:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Password-protected directory for subdomains

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.