From c5f5f84f58fb48d025a1d0a4769ffc63bef5c115 Mon Sep 17 00:00:00 2001
From: pcs
Handlers can either be built into the server or to a module, or
they can be added with the
Syntax: <AddHandler handler-name
- extension>
+>Syntax: AddHandler handler-name extension extension...
Context: server config, virtual host, directory,
- .htaccess
+>Context: server config, virtual host, directory, .htaccess
+Override: FileInfo
Module: mod_mime
+>Module: mod_mime
+Compatibility: AddHandler is only available in Apache
+1.1 and later
+ +
AddHandler maps the filename extensions extension to the +handler handler-name. This mapping is added to any already +in force, overriding any mappings that already exist for the same +extension. -
AddHandler maps the filename extension extension to the
-handler handler-name. For example, to activate CGI scripts
+For example, to activate CGI scripts
with the file extension ".cgi
", you might use:
AddHandler cgi-script cgi
Once that has been put into your srm.conf or httpd.conf file, any
-file ending with ".cgi
" will be treated as a CGI
-program.
.cgi
" extension will be treated as a
+CGI program.
+
++ +See also: Files with +multiple extensions
When placed into an .htaccess
file or a
-<Directory>
or <Location>
section,
-this directive forces all matching files to be parsed through the
-handler given by handler-name. For example, if you had a
+<Directory>
or <Location>
+section, this directive forces all matching files to be parsed through
+the handler given by handler-name. 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
-.htaccess
file in that directory:
+.htaccess
file in that directory:
SetHandler imap-file+
Another example: if you wanted to have the server display a status
-report whenever a URL of http://servername/server-status
was
+report whenever a URL of http://servername/status
was
called, you might put the following into access.conf:
- <Location /server-status> + <Location /status> SetHandler server-status </Location>- -
Handlers can either be built into the server or to a module, or
they can be added with the
Syntax: <AddHandler handler-name
- extension>
+>Syntax: AddHandler handler-name extension extension...
Context: server config, virtual host, directory,
- .htaccess
+>Context: server config, virtual host, directory, .htaccess
+Override: FileInfo
Module: mod_mime
+>Module: mod_mime
+Compatibility: AddHandler is only available in Apache
+1.1 and later
+ +
AddHandler maps the filename extensions extension to the +handler handler-name. This mapping is added to any already +in force, overriding any mappings that already exist for the same +extension. -
AddHandler maps the filename extension extension to the
-handler handler-name. For example, to activate CGI scripts
+For example, to activate CGI scripts
with the file extension ".cgi
", you might use:
AddHandler cgi-script cgi
Once that has been put into your srm.conf or httpd.conf file, any
-file ending with ".cgi
" will be treated as a CGI
-program.
.cgi
" extension will be treated as a
+CGI program.
+
++ +See also: Files with +multiple extensions
When placed into an .htaccess
file or a
-<Directory>
or <Location>
section,
-this directive forces all matching files to be parsed through the
-handler given by handler-name. For example, if you had a
+<Directory>
or <Location>
+section, this directive forces all matching files to be parsed through
+the handler given by handler-name. 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
-.htaccess
file in that directory:
+.htaccess
file in that directory:
SetHandler imap-file+
Another example: if you wanted to have the server display a status
-report whenever a URL of http://servername/server-status
was
+report whenever a URL of http://servername/status
was
called, you might put the following into access.conf:
- <Location /server-status> + <Location /status> SetHandler server-status </Location>- -