Search code examples
apache.htaccess.htpasswd

How to ignore some directory in htpasswd?


I set some htaccess with htpasswd on my server. Here is it's content:

Order Allow,Deny
AuthType Basic
AuthName "Password"
AuthUserFile /var/www/.htpasswd
Require valid-user
Satisfy Any

It works for all /var/www/* directories.

Is it possible to ignore some of that /var/www/* directories ?


Solution

  • You can place those directives in a <Directory> directive, so they only apply to one directory.