httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] uri and location directive
Date Mon, 03 Apr 2006 15:42:31 GMT
On 4/3/06, toni pérez <planetaenfermo@gmail.com> wrote:
> Hi list,
>
> I have got an apache auth_module write in c to apply own requires in
> an own authorization handler, such this:
>
> <Location "/apw5/rme">
> allow from all
> AuthType CA2
> require ACL
> Grupo 'RME_usuaris'
> </Location>
>
> <Location  "/apw5/">
> allow from all
> AuthType CA2
> require USUARIO-VALIDO
> </Location>
>
> When the server receives the url http://myserver/apw5/rme,  is the
> second directive "/apw5" instead "/apw5/rme" that do match.
>
> Why do this?
>
> I need a solution that isn't change the order of directives

The ordering of configuration merging is defined here:
http://httpd.apache.org/docs/2.2/sections.html#mergin

If /apw5 is really a directory in the filesystem, you can fix this by
using the appropriate <Directory> section instead of <Location>. 
Otherwise you must change the order in the config file.

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


Mime
View raw message