diff options
author | pcs <pcs@unknown> | 1998-11-20 15:56:34 +0000 |
---|---|---|
committer | pcs <pcs@unknown> | 1998-11-20 15:56:34 +0000 |
commit | c5f5f84f58fb48d025a1d0a4769ffc63bef5c115 (patch) | |
tree | 312cdfd907bccd591117b80ff827b5ec1055cae2 /docs/manual/handler.html.en | |
parent | 63e7bd76a6ff83a0dd09bc0c80370e9f689a028c (diff) | |
download | httpd-c5f5f84f58fb48d025a1d0a4769ffc63bef5c115.tar.gz |
Add link to description of how files with multiple extensions are
handled. At the same time update the descriptions of the directives
to make the descriptions in the authoritative file (mod/mod_mime.html).
PR: 3151
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82405 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/handler.html.en')
-rw-r--r-- | docs/manual/handler.html.en | 64 |
1 files changed, 44 insertions, 20 deletions
diff --git a/docs/manual/handler.html.en b/docs/manual/handler.html.en index 7012a72745..a706ec9eb4 100644 --- a/docs/manual/handler.html.en +++ b/docs/manual/handler.html.en @@ -28,7 +28,10 @@ separately. For example, you may use a type of explicitly. Either based on filename extensions or on location, these handlers are unrelated to file type. This is advantageous both because it is a more elegant solution, but it also allows for both a type -<STRONG>and</STRONG> a handler to be associated with a file.</P> +<STRONG>and</STRONG> a handler to be associated with a file (See also +<A HREF="mod/mod_mime#multipleext">Files with Multiple Extensions</A>) + +</P> <P>Handlers can either be built into the server or to a module, or they can be added with the <A @@ -78,13 +81,15 @@ handlers in the standard distribution are as follows:</P> <A HREF="mod/directive-dict.html#Syntax" REL="Help" -><STRONG>Syntax:</STRONG></A> <AddHandler <EM>handler-name - extension</EM>><BR> +><STRONG>Syntax:</STRONG></A> AddHandler <EM>handler-name extension extension...</EM><BR> <A HREF="mod/directive-dict.html#Context" REL="Help" -><STRONG>Context:</STRONG></A> server config, virtual host, directory, - .htaccess<BR> +><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR> +<A + HREF="mod/directive-dict.html#Override" + REL="Help" +><STRONG>Override:</STRONG></A> FileInfo<BR> <A HREF="mod/directive-dict.html#Status" REL="Help" @@ -92,18 +97,32 @@ handlers in the standard distribution are as follows:</P> <A HREF="mod/directive-dict.html#Module" REL="Help" -><STRONG>Module:</STRONG></A> mod_mime +><STRONG>Module:</STRONG></A> mod_mime<BR> +<A + HREF="mod/directive-dict.html#Compatibility" + REL="Help" +><STRONG>Compatibility:</STRONG></A> AddHandler is only available in Apache +1.1 and later<P> + +<P>AddHandler maps the filename extensions <EM>extension</EM> to the +handler <EM>handler-name</EM>. This mapping is added to any already +in force, overriding any mappings that already exist for the same +<EM>extension</EM>. -<P>AddHandler maps the filename extension <EM>extension</EM> to the -handler <EM>handler-name</EM>. For example, to activate CGI scripts +For example, to activate CGI scripts with the file extension "<CODE>.cgi</CODE>", you might use: <PRE> AddHandler cgi-script cgi </PRE> <P>Once that has been put into your srm.conf or httpd.conf file, any -file ending with "<CODE>.cgi</CODE>" will be treated as a CGI -program.</P> +file containing the "<CODE>.cgi</CODE>" extension will be treated as a +CGI program.</P> + +<P> + +<STRONG>See also</STRONG>: <A HREF="mod/mod_mime.html#multipleext">Files with +multiple extensions</A> <HR> @@ -112,7 +131,7 @@ program.</P> <A HREF="mod/directive-dict.html#Syntax" REL="Help" -><STRONG>Syntax:</STRONG></A> <SetHandler <EM>handler-name</EM>><BR> +><STRONG>Syntax:</STRONG></A> SetHandler <EM>handler-name</EM><BR> <A HREF="mod/directive-dict.html#Context" REL="Help" @@ -124,28 +143,33 @@ program.</P> <A HREF="mod/directive-dict.html#Module" REL="Help" -><STRONG>Module:</STRONG></A> mod_mime +><STRONG>Module:</STRONG></A> mod_mime<BR> +<A + HREF="mod/directive-dict.html#Compatibility" + REL="Help" +><STRONG>Compatibility:</STRONG></A> SetHandler is only available in Apache +1.1 and later.<P> <P>When placed into an <CODE>.htaccess</CODE> file or a -<CODE><Directory></CODE> or <CODE><Location></CODE> section, -this directive forces all matching files to be parsed through the -handler given by <EM>handler-name</EM>. For example, if you had a +<CODE><Directory></CODE> or <CODE><Location></CODE> +section, this directive forces all matching files to be parsed through +the handler given by <EM>handler-name</EM>. For example, if you had a directory you wanted to be parsed entirely as imagemap rule files, regardless of extension, you might put the following into an -<CODE>.htaccess</CODE> file in that directory: +<CODE>.htaccess</CODE> file in that directory: <PRE> SetHandler imap-file </PRE> + <P>Another example: if you wanted to have the server display a status -report whenever a URL of <CODE>http://servername/server-status</CODE> was +report whenever a URL of <CODE>http://servername/status</CODE> was called, you might put the following into access.conf: <PRE> - <Location /server-status> + <Location /status> SetHandler server-status </Location> </PRE> - -<P><HR> +<HR> <H2>Programmer's Note</H2> |