0
votes

I have a directory which contains a htaccess file:

AuthType Basic
AuthName "Go away"
AuthUserFile /home/daniel/.htpasswds/directory1/.htpasswd
Require valid-user

I have a subdirectory within that folder that I wish to use a different set of usernames/passwords for. How do I negate the effects of the first htaccess so I can use the auth?

Thanks

2

2 Answers

0
votes

Just put another .htaccess in the subfolder and override the needed settings in there.

0
votes

To use another .htaccess is disabled by default. So you first have to set "AllowOverride AuthConfig" in the directory directive of your apache config file.