]> granicus.if.org Git - apache/commitdiff
Replace FilesMatch with Files where appropriate
authorRich Bowen <rbowen@apache.org>
Wed, 12 Mar 2014 20:44:38 +0000 (20:44 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 12 Mar 2014 20:44:38 +0000 (20:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1576896 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml

index c735cdb62f7f34700b2f68d3035808d828c78e19..55caa7ed783382242f5f3c79986bc66f83670f81 100644 (file)
@@ -66,12 +66,14 @@ trust, as it can be abused to change the internal workings of httpd.</p>
 
 <p>
 <code>mod_lua</code> provides a handler named <code>lua-script</code>,
-which can be used with an <code>AddHandler</code> directive:</p>
+which can be used with a <directive
+module="core">SetHandler</directive> or
+<directive module="mod_mime">AddHandler</directive> directive:</p>
 
 <highlight language="config">
-&lt;FilesMatch "\.lua$"&gt;
-    AddHandler lua-script .lua
-&lt;/FilesMatch&gt;
+&lt;Files *.lua&gt;
+    SetHandler lua-script
+&lt;/Files&gt;
 </highlight>
 
 <p>
@@ -1832,9 +1834,9 @@ onto the Lua script:
 
 <highlight language="config">
 LuaInputFilter myInputFilter /www/filter.lua input_filter
-&lt;FilesMatch "\.lua&gt;
+&lt;Files *.lua&gt;
   SetInputFilter myInputFilter
-&lt;/FilesMatch&gt;
+&lt;/Files&gt;
 </highlight>
 <highlight language="lua">
 --[[
@@ -1889,9 +1891,9 @@ onto the Lua script:
 
 <highlight language="config">
 LuaOutputFilter myOutputFilter /www/filter.lua output_filter
-&lt;FilesMatch "\.lua&gt;
+&lt;Files *.lua&gt;
   SetOutputFilter myOutputFilter
-&lt;/FilesMatch&gt;
+&lt;/Files&gt;
 </highlight>
 <highlight language="lua">
 --[[