Re: <Location /> for a whole site BUT one directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx  //  pctony@xxxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux