httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <>
Subject Re: Bad choice of directory names for info- & status-modules
Date Wed, 24 Jul 1996 16:03:01 GMT
Alexei Kosut wrote:
> On Wed, 24 Jul 1996, Randy Terbush wrote:
> > However, <Location /info> seems to be matching requests for things
> > like /information/, causing a redirect to mod_info.
> Of course it is, that's what it *does*. Just like <Directory>, it looks
> for files (or in this case, URLs) that match the given prefix. Except that
> <Directory> tacks on a / if one doesn't exist (the theory being that it
> has to be a directory), <Location> doesn't. So <Location /info> matches
> any URL beginning with the string "/info". If you don't want that, you
> could do use "/info/", but that means that you have to remember to have
> the / when accessing the URL.
> I suppose we could change the behvior of <Location> (when I think about
> it, I can see arguments for making it a straight string match - with the *
> and ? wildcards it supports now, of course), but it's too late name,
> methinks.

Now that we have a regexp package (praise the Lord), we should consider
changing all such things to regexps, no?

Or, at least, have a regexp equivalent for each of them? Though Grud knows
what should happen if you mix them.



> -- Alexei Kosut <>            The Apache HTTP Server 

Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email:
A.L. Digital Ltd,           URL:
London, England.            Apache Group member (

View raw message