Re: Location and sublocation?

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

 



On Thu, Nov 25, 2010 at 2:39 PM, Jakov Sosic <jakov.sosic@xxxxxxx> wrote:
> Hi.
>
> I have a following config:
>
> <Location />
> Â Order allow,deny
> Â Allow from all
> Â AuthType basic
> Â AuthName "Password Required"
> Â AuthUserFile /etc/httpd/htpasswd
> Â Require valid-user
> </Location>
>
> Now, I want to allow access to location /somethingelse. Is that possible
> somehow? For example, tu put this in configuration:
>
> <Location /somethingelse>
> Â Allow from all
> </Location>
>
> This does not work. It seems that locations cannot be chained like
> directories. So can I achieve this somehow?
>
> Problem that I have is: i must defend location "/" with authentication,
> and for authentication I use mod_auth_memcookie with local PHP files
> which must be accessible by world if I want the authentication to
> work... So chicken and egg problem - if I don't defend /, I can access
> /somethingelse and authorize, if I defend /, I cannot access
> /somethingelse and because of that I cannot authenticate :(
>
>
> Apache 2.2 on CentOS 5.5
>
>

This is covered in the docs:

http://httpd.apache.org/docs/2.2/mod/core.html#require

gives this exact case as an example (you're missing a 'Satisfy Any' in
the 2nd block).

Cheers

Tom

Cheers

Tom

---------------------------------------------------------------------
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