Forum Moderators: phranque

Message Too Old, No Replies

AuthConfig Root but not certain Subdirectoies?

Is it possible?

         

Poor_Knight

10:23 pm on May 17, 2006 (gmt 0)

10+ Year Member



On a server I have the root directory using AuthConfig, requiring a valid user. But there are certain subdirectories which I would like to not protect in this way? I cannot figure out if this is possible.

Please help - thanks a mil!

Poor_Knight

5:45 pm on May 18, 2006 (gmt 0)

10+ Year Member



Nada?

jdMorgan

9:44 pm on May 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where is the documentation page for AuthConfig? I'm not finding it.

What Apache version are you running?

Jim

Poor_Knight

10:20 pm on May 18, 2006 (gmt 0)

10+ Year Member



Sorry, AuthConfig is a Directive-Type for AllowOverride.

here is what I have:

<Directory "C:/Program Files/Apache Group/Apache2/htdocs">

AuthUserFile "/Program Files/Apache Group/Apache2/.htpasswd"
AuthType Basic
AuthName "Authorization Required"
Require valid-user

</Directory>

This is requiring a username/password.

But say for:
<Directory "C:/Program Files/Apache Group/Apache2/htdocs/publicOK">

I do not want the requirement for username/password.

Hope this helps better explain.

Apache version is 2.0

jdMorgan

11:05 pm on May 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ooops! I was looking for a directive of that name... :o

Something like this, maybe?


<Directory "C:/Program Files/Apache Group/Apache2/htdocs/publicOK">
Satisfy any
Allow from all
</Directory>

Ref:
Satisfy [httpd.apache.org] (core)
Allow [httpd.apache.org] (mod_access)

Jim

Poor_Knight

2:22 pm on May 19, 2006 (gmt 0)

10+ Year Member



A thousand thank yous! That did the trick.

Thanks for the reference links to - they're very helpful.