Password Protect htdocs
I want to create a new tools directory at /usr/local/apache/htdocs/tools and password protect the contents. I've generated /usr/local/apache/htdocs/.htpasswd and referenced it in /usr/local/apache/htdocs/tools/.htaccess. I think the password protection is ignored because /usr/local/apache/conf/httpd.conf has a directive for /usr/local/apache/htdocs with AllowOverride None.
Should I add a new directive in post_virtualhost_global.conf like this:
Options Includes Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
-
Hello :) Adding that entry to post_virtualhost_global.conf should work as you intend it to. Feel free to let us know the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
1 comment