httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: A related random question
Date Wed, 16 Oct 1996 06:03:40 GMT
Alexei Kosut wrote:
> 
> On Tue, 15 Oct 1996 sameer@c2.net wrote:
> 
> > 	How well documented is that overriding? My feeling is that
> 
> Very. At least, it's documented in the <Location> docs.
> 
> > intuitively one would think that Directory would override Location, so
> > this should be well documented.
> 
> No, you wouldn't. At least, I wouldn't. For example, say you have:
> 
> <Directory /document/root>
> allow from all
> deny from none
> </Directory>
> 
> <Location /status>
> SetHandler server-status
> deny from all
> allow from .my.domain
> </Location>
> 
> If <Directory> overrid <Location>, then the limit directives in the
> <Location> section would never come into play, because the <Directory>
> section would override them (the URL path /status does map to
> /document/root/status, and so falls into that section). I ran into
> this problem when I first did <Location>, so made it override
> <Directory>. Perhaps a better way of doing it would be to have it
> process all <Directory>, <Location>, and <Files> in the order that
> they appear, but this would be very different than what it does now,
> and many config files would break.
> 
> Anyhow, that's the reasoning.

I agree. I'm slightly less convinced that <File> should override <Location> but
the point is moot.

Cheers,

Ben.

> 
> -- 
> ________________________________________________________________________
> Alexei Kosut <akosut@nueva.pvt.k12.ca.us>      The Apache HTTP Server
> URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/
> 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message