View previous topic :: View next topic |
Author |
Message |
andyknownasabu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/204683489642a073986f3f4.jpg)
Joined: 06 Feb 2003 Posts: 281 Location: Zurich, Switzerland
|
Posted: Sun Jun 25, 2006 8:58 am Post subject: Disable AuthType in Apache for subdirectories |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nixnut Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/29856733845fd04c0f3d8c.gif)
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Jun 25, 2006 12:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
andyknownasabu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/204683489642a073986f3f4.jpg)
Joined: 06 Feb 2003 Posts: 281 Location: Zurich, Switzerland
|
Posted: Sun Jun 25, 2006 12:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jurasone n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Feb 2008 Posts: 1
|
Posted: Wed Feb 20, 2008 9:37 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|