What is Apache?
Apache is a program that receives requests from web browsers. It then responds by “serving” web pages to the browsers; for this reason, it’s called web server software.
What is an Apache handler?
Apache handlers control how your site’s Apache web server software manages certain file types and extensions. Apache comes configured to handle CGI scripts and server-parsed files. Their file extensions include: .cgi, .pl, .plx, .ppl, .perl, and .shtml.
You can configure Apache to handle a new file type with an existing handler by manually adding the handler and extension on this screen. For example, to have the server treat files with the extension .example as CGI files, you would type “cgi-script” under Handler and “.example” under Extension(s).
Available handlers
The following Apache handlers are available. They are followed by a module name in parentheses. Please note that the module in parentheses must be installed within Apache on the server:
default-handler: Sends the file using Apache’s default handler for static content. (core)
send-as-is: Sends the file with HTTP headers as they are. (mod_asis)
cgi-script: Handles the file as a CGI script. (mod_cgi)
imap-file: Parses the file as an imagemap rule file; for more information, see Apache’s documentation. (mod_imap)
server-info: Retrieves the server’s configuration information. (mod_info)
server-parsed: Parses the file for server-side includes. (mod_include)
server-status: Retrieves the server’s status report. (mod_status)
type-map: Parses the file as a type map file; for more information, see Apache’s documentation. (mod_negotiation)
Note: This interface does not allow you to create custom Apache handlers.
Create an Apache handler
- Enter the action/application path in the Handler box.
- Enter the extension(s) in the Extension(s) box. You can use spaces to separate multiple extensions.
- Click Add.
Remove user-defined Apache handlers
You can remove Apache handlers you have defined.
Note: The file extensions automatically handled by Apache cannot be removed.
- Click X to the right of the appropriate handler in the User Defined Apache Handlers chart. You will be directed to a new page.
- Click Yes to remove the handler or click No to cancel the removal.