Location and sublocation?

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

 



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


-- 
Jakov Sosic

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