httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Case Insensitive Regex in Location
Date Wed, 25 Aug 2004 10:02:14 GMT
Tim Saunders wrote:
> Currently my apache config contains the following Location directive:
> <Location ~ "/(d|D)(o|O)(c|C)">
> Order Deny,Allow
> Deny from all
> Allow from localhost
> </Location>
> 
> There must be a better way to perform a case insensitive regex in a
> location directive

There is:

    <LocationMatch /(?i)doc>
        ...
    </LocationMatch>

See:
http://www.perldoc.com/perl5.8.0/pod/perlre.html#Extended-Patterns

Regards,
Robert Andersson

---------------------------------------------------------------------
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