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] LocationMatch and regular expression
Date Wed, 20 Oct 2004 15:11:51 GMT
[plain text, please...]
Lucioni Lorenzo wrote:
> I need to match the following URLs:
> http://aaa.bbb.cc/dev01/service1
> http://aaa.bbb.cc/dev01/supplier2
> and I don't want to match:
> http://aaa.bbb.cc/dev01/cgi-bin

Two methods:
    1) /dev01/(service1|supplier2)
    2) /dev01/(?!cgi-bin)

If you have a small finite set of locations you want matched, go with the 
first. If you want many locations except a small finite set, go for the 
second.

For more info, see:
    http://www.perldoc.com/perl5.8.0/pod/perlre.html

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