httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fRANz <andrea.francesc...@gmail.com>
Subject [users@httpd] Location Conflict
Date Mon, 13 Nov 2006 22:45:09 GMT
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


Mime
View raw message