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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
batfastad
Forum Contributor
Posts: 433
Joined: Tue Mar 30, 2004 4:24 am
Location: London, UK

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

Post 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
Last edited by batfastad on Thu Jul 13, 2006 6:34 am, edited 1 time in total.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Code: Select all

Allow from all
Satisfy Any
User avatar
batfastad
Forum Contributor
Posts: 433
Joined: Tue Mar 30, 2004 4:24 am
Location: London, UK

Post by batfastad »

Works an absolute treat!
I've edited the subject to show this has been solved.


Thanks

Ben
Post Reply