You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by fRANz <an...@gmail.com> on 2006/11/13 23:45:09 UTC
[users@httpd] Location Conflict
Hi all,
this is my scenario:
* /var/www/html as DocumentRoot;
* no vhost (actually, but I can create them);
* for <Location />, something like:
####################################################
PerlAuthenHandler xxx
AuthType xxx
AuthName xxx
Require valid-user
PerlSetVar xxx
PerlSetVar xxx
####################################################
it permit a transparent authentication for users in a lan.
I need to have an IP without transparent authentication.
If I setup:
Alias /auth /var/www/html
<Location />
#No auth
</Location>
<Location /auth>
#Auth enabled
PerlAuthenHandler xxx
AuthType xxx
AuthName xxx
Require valid-user
PerlSetVar xxx
PerlSetVar xxx
</Location>
every works fine: if I access to / location transparent auth doesn't
works, but when I access to /auth/... it works fine.
Well, I need to have the contrary situation:
Location /
for transparent auth
and
Location /adm
for no auth applied
but "Location /" is matched as first and "Location /adm" is never considered.
How can I bypass this problem?!
Regards.
fRANz
---------------------------------------------------------------------
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
Re: [users@httpd] Location Conflict
Posted by fRANz <an...@gmail.com>.
On 11/14/06, Joshua Slive <jo...@slive.ca> wrote:
> I don't know anything about your mod_perl stuff, but the usual
> solution to "general restriction; unrestrict in subdirectory" is
>
> Satisfy any
> Allow from all
>
> in the subdirectory.
>
> Joshua.
Hi Joshua,
thank you for your reply.
Auth is inherit in subdirectory from / location with Satisfy, and I
cannot use Allow or Deny directive (they block whole access, not only
the transparent auth).
I'll try with different vhost.
Regards,
fRANz
---------------------------------------------------------------------
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
Re: [users@httpd] Location Conflict
Posted by Joshua Slive <jo...@slive.ca>.
On 11/13/06, fRANz <an...@gmail.com> wrote:
> but "Location /" is matched as first and "Location /adm" is never considered.
> How can I bypass this problem?!
I don't know anything about your mod_perl stuff, but the usual
solution to "general restriction; unrestrict in subdirectory" is
Satisfy any
Allow from all
in the subdirectory.
Joshua.
---------------------------------------------------------------------
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