]> granicus.if.org Git - apache/commitdiff
Correct a regex so that it doesn't match the file named '.cgi'
authorRich Bowen <rbowen@apache.org>
Wed, 15 Apr 2015 20:56:55 +0000 (20:56 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 15 Apr 2015 20:56:55 +0000 (20:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673954 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_mime.xml

index 522321376a1a765d6fedc0f26300a156ba9dc7f1..171964a47e6dc52f017386cc5f0c9a63d19f6330 100644 (file)
@@ -144,7 +144,7 @@ module="mod_mime_magic">MimeMagicFile</directive></seealso>
 
     <example><title>Configure handler based on final extension only</title>
     <highlight language="config">
-&lt;FilesMatch "\.cgi$"&gt;
+&lt;FilesMatch ".+\.cgi$"&gt;
   SetHandler cgi-script
 &lt;/FilesMatch&gt;
     </highlight>