Page 1 of 1

[SOLVED] Apache http auth - turn off for a subdirectory

Posted: Thu Jul 13, 2006 5:12 am
by batfastad
Hi guys

When you set up http auth in Apache obviously that also means that all subdirectories are also password protected.

Is there a way to turn it off for a particular subdirectory using htaccess?
But with the parent and other subdirectories of the parent, still using http auth?

Obviously leaving out the...
AuthUserFile
AuthName
AuthType
Require

directives in the child directory htaccess file has no effect as you have to specifically turn it off.

I've tried changing the values of the above directives to None, and leaving them blank and still no luck.

Any ideas?

Thanks

Ben

Posted: Thu Jul 13, 2006 6:28 am
by Weirdan

Code: Select all

Allow from all
Satisfy Any

Posted: Thu Jul 13, 2006 6:34 am
by batfastad
Works an absolute treat!
I've edited the subject to show this has been solved.


Thanks

Ben