Let’s say you have a directory that is password protected:
1 2 3 4 5 6 |
<Directory /var/www/vhosts/mysite.com/httpdocs> AuthName "Login Required" AuthType Basic AuthUserFile /etc/httpd/conf/.htpasswd Require valid-user </Directory> |
Now you want to remove the password protection from a sub-folder like:
1 |
/var/www/vhosts/mysite.com/httpdocs/public |
This can be accomplished by adding another Directory block like this:
1 2 3 4 |
<Directory /var/www/vhosts/mysite.com/httpdocs/public> Allow from all Satisfy any </Directory> |