httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Stevenson <t...@pc-tony.com>
Subject Re: [users@httpd] <Location /> for a whole site BUT one directory
Date Sun, 03 Aug 2008 20:36:32 GMT
Ralph Kutschera wrote:
> Hallo list!
> 
>   I've been searching the archive but it seems there isn't yet a 
> solution to this:
> 
>   I would like to have a whole site to be accessed only by user/passwd:
> 
> <Location />
>   AuthXXX [..]
> </Location>
> 
>   Only one directory should be accessible without authentication:
> <Location /public>
>   Order Allow,Deny
>   Allow from All
> </Location>
> 

Try re-ordering the <location> blocks so that that /public one is first.

Alternatively you could also try using <LocationMatch> [1] or 
<DirectoryMatch> [2]

Tony


[1] http://httpd.apache.org/docs/trunk/mod/core.html#locationmatch
[2] http://httpd.apache.org/docs/trunk/mod/core.html#directorymatch

-- 


-----------------------------------------
Tony Stevenson
tony@pc-tony.com  //  pctony@apache.org
http://www.pc-tony.com/

1024D/51047D66 ECAF DC55 C608 5E82 0B5E  3359 C9C7 924E 5104 7D66
-----------------------------------------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message