2.3.20 AddHandler
AddHandler defines the association between a handler and the file extensions to be processed by the handler.
Description
AddHandler defines the association between a handler and the file extensions to be processed by the handler.
You can specify the handler names shown below. If you specify this directive more than once, you cannot specify different handler names for the same extension.
- cgi-script
-
Executes CGI scripts
- imap-file
-
Performs image map processing
- server-status
-
Displays the status
Syntax
AddHandler handler_name extension [extension ...]
Locations where it can be written
httpsd.conf, <VirtualHost>, <Directory>, and .htaccess
Overwrite permission
FileInfo level
Example
AddHandler cgi-script .cgi ...1. AddHandler imap-file map ...2.
-
The extension .cgi is associated with the cgi-script handler.
-
The extension map is associated with the imap-file handler.