Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disable AuthType in Apache for subdirectories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 25, 2006 8:58 am    Post subject: Disable AuthType in Apache for subdirectories Reply with quote

Hi folks,

I have a .htaccess/password file in my document root protecting this
directory (and all subdirectories) with a Basic authentification.
Now I would like to have a subdirectory not protected by this -
how can I accomplish that?
I've searched google but "AuthType None" or something similar
doesn't seem to exist :-(

Thanks!
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jun 25, 2006 12:02 pm    Post subject: Reply with quote

Put an .htaccess in the subdirectory and override the settings of the parent dir. You will need to specify in the parent .htaccess that its settings may be overridden by children.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 25, 2006 12:37 pm    Post subject: Reply with quote

nixnut wrote:
Put an .htaccess in the subdirectory and override the settings of the parent dir. You will need to specify in the parent .htaccess that its settings may be overridden by children.

Thanks for your reply!

But which settings do I have to override and how (e.g. AuthType None doesn't seem to exist)?
My top .htaccess looks like:
Code:
AuthType Basic
AuthName "realm"
AuthUserFile .passwords
Require valid-user

_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
jurasone
n00b
n00b


Joined: 20 Feb 2008
Posts: 1

PostPosted: Wed Feb 20, 2008 9:37 am    Post subject: Reply with quote

Hi!

It's old topic, but I had the same issue and I found the answer.

In .htaccess put:
Code:
Order allow,deny
Allow from all
Satisfy any


More information you can find here: http://httpd.apache.org/docs/2.2/mod/core.html#satisfy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum