httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: Syntax for <FilesMatch> directive
Date Thu, 13 Dec 2001 18:20:05 GMT


> From: Jean-Gabriel Duquesnoy [mailto:jean-gabriel@duquesnoy.de]

> <FilesMatch "(add|amend|del)*.php $">

Here's my educated guess:

"*" in a regular expression does not mean the same as "*" in the shell.  It
means "match zero or more of the immediately preceeding character/group.  So
your regex matches ".php" "add.php" "addaddaddadd.php" but not "addfoo.php".
The other problem could be the space between php and $.

What you probably want is
<FilesMatch "(add|amend|del).*\.php$">

The "." matches any character, so ".*" matches zero or more of any character
(ie anything).  The "\." matches a literal dot.

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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message