]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Resolves bz57777 - Use an example other than cgi-script for AddHandler
authorRich Bowen <rbowen@apache.org>
Fri, 3 Apr 2026 18:59:58 +0000 (18:59 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 3 Apr 2026 18:59:58 +0000 (18:59 +0000)
docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1932814 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_mime.xml

index f774d3b562d6d324d262fde446edeae46c88335a..a34c8f17f27e834107be9270bf5d3f49863882b0 100644 (file)
@@ -138,14 +138,15 @@ module="mod_mime_magic">MimeMagicFile</directive></seealso>
     <p>If you would prefer only the last dot-separated part of the
     filename to be mapped to a particular piece of meta-data, then do
     not use the <code>Add*</code> directives. For example, if you wish
-    to have the file <code>foo.html.cgi</code> processed as a CGI
-    script, but not the file <code>bar.cgi.html</code>, then instead
-    of using <code>AddHandler cgi-script .cgi</code>, use</p>
+    to have the file <code>foo.html.asis</code> served by the <code>send-as-is</code>
+    handler provided by <module>mod_asis</module>
+    script, but not the file <code>bar.asis.html</code>, then instead
+    of using <code>AddHandler send-asis .asis</code>, use</p>
 
     <example><title>Configure handler based on final extension only</title>
     <highlight language="config">
-&lt;FilesMatch "[^.]+\.cgi$"&gt;
-  SetHandler cgi-script
+&lt;FilesMatch "[^.]+\.asis$"&gt;
+  SetHandler send-asis
 &lt;/FilesMatch&gt;
     </highlight>
     </example>
@@ -361,17 +362,14 @@ handler</description>
     <p>Files having the name <var>extension</var> will be served by the
     specified <var><a href="../handler.html">handler-name</a></var>. This
     mapping is added to any already in force, overriding any mappings that
-    already exist for the same <var>extension</var>. For example, to
-    activate CGI scripts with the file extension <code>.cgi</code>, you
-    might use:</p>
+    already exist for the same <var>extension</var>. For example, to associate 
+    <code>.var</code> files with the <code>type-map</code> handler provided by
+    <module>mod_negotiation</module>, you might use:</p>
 
     <highlight language="config">
-AddHandler cgi-script .cgi
+AddHandler type-map .var
     </highlight>
 
-    <p>Once that has been put into your httpd.conf file, any file containing
-    the <code>.cgi</code> extension will be treated as a CGI program.</p>
-
     <p>The <var>extension</var> argument is case-insensitive and can
     be specified with or without a leading dot. Filenames may have <a
     href="#multipleext">multiple extensions</a> and the