From: Rich Bowen Date: Fri, 3 Apr 2026 18:59:58 +0000 (+0000) Subject: Resolves bz57777 - Use an example other than cgi-script for AddHandler X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d93978082cc1e3685936b4b0692feecea0d579b;p=thirdparty%2Fapache%2Fhttpd.git Resolves bz57777 - Use an example other than cgi-script for AddHandler docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1932814 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.xml b/docs/manual/mod/mod_mime.xml index f774d3b562..a34c8f17f2 100644 --- a/docs/manual/mod/mod_mime.xml +++ b/docs/manual/mod/mod_mime.xml @@ -138,14 +138,15 @@ module="mod_mime_magic">MimeMagicFile

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 Add* directives. For example, if you wish - to have the file foo.html.cgi processed as a CGI - script, but not the file bar.cgi.html, then instead - of using AddHandler cgi-script .cgi, use

+ to have the file foo.html.asis served by the send-as-is + handler provided by mod_asis + script, but not the file bar.asis.html, then instead + of using AddHandler send-asis .asis, use

Configure handler based on final extension only -<FilesMatch "[^.]+\.cgi$"> - SetHandler cgi-script +<FilesMatch "[^.]+\.asis$"> + SetHandler send-asis </FilesMatch> @@ -361,17 +362,14 @@ handler

Files having the name extension will be served by the specified handler-name. This mapping is added to any already in force, overriding any mappings that - already exist for the same extension. For example, to - activate CGI scripts with the file extension .cgi, you - might use:

+ already exist for the same extension. For example, to associate + .var files with the type-map handler provided by + mod_negotiation, you might use:

-AddHandler cgi-script .cgi +AddHandler type-map .var -

Once that has been put into your httpd.conf file, any file containing - the .cgi extension will be treated as a CGI program.

-

The extension argument is case-insensitive and can be specified with or without a leading dot. Filenames may have multiple extensions and the