Apache Handlers
outline
Apache handlers control how your site's Apache web server software manages some file types and file extensions. Apache can handle CGI scripts and server-parsed files. File extensions for these files include .cgi, .pl, .plx, .ppl, .perl, and .shtml.
You can configure Apache to use existing handlers to handle new file types. To do this, manually add handlers and extensions to this interface.
Creating an Apache handler
To add an Apache handler, follow these steps:
1. Enter the handler name in the Handler text box. cPanel includes the following built-in handlers:
- default-handler : Use Apache's default handler for file transfer and statistical content.
- send-as-is: Send the file with the HTTP headers intact.
- cgi-script: Processes the file as a CGI script.
- imap-file: Parse the file into an imagemap rules file.
Please read Apache's documentation for more information. - server-info : Retrieves configuration information for the server.
- server-parsed: Parse the file for server inclusion.
- server-status : Retrieves a status report for a server.
- type-map : Parse the file into a file map file.
Please read Apache's documentation for more information.
2. Enter the file extension in the Extension text box.
- A file extension consists of the characters following the dot (.) in the file name (for example, filename.fileextension).
- Multiple extensions separated by spaces (for example, .cgi .pl .ppl).
3. Click Add.
Note :
You cannot use this interface to create custom Apache handlers.
Removing the Apache handler
To remove a custom handler, follow these steps:
1. In the User Defined Apache Handlers ( User Defined Apache Handlers ) table, Remove for that handler Delete under the (Remove) heading. Click (Delete) .
2. Click Yes .
Note :
You cannot remove file extensions that Apache automatically handles.
View original: Apache Handlers