Adding Apache Handlers
Apache handlers allow you to control what Apache will do with certain file types. When Apache sees a file, it has an action built in for that file type, and will perform that action. If you wish Apache to do a different action, you will need to make a handler to tell Apache to perform that action. For example, if you use a file type that requires a special service to run it, such as a movie file (.mpg) that you wish to run through a specific streaming server, you need to tell Apache to treat these files differently.
To add Apache Handlers:
- Click on the icon above the words "Apache Handlers" on the main screen of your cPanel interface
- Enter the extension(s) you wish to associate with the service that they will be using in the blank field below extension(s)
- Enter the service you wish to have handle the filetype(s) in the blank field below "Handler," and click on "Add." The new handler should appear under "User Defined Handlers"
Troubleshooting: Make sure that the handler you wish to use is installed on the server that your web site is on.
Removing Apache Handlers
If you no longer need a special action for the file types you have specified, you can remove the handlers you have created with the Apache Handlers menu
To remove Apache Handlers:
- To access "Apache Handlers," click on the icon above the words "Apache Handlers" on the main screen of your cPanel interface
- Select the handler you wish to remove from the drop box, and click on "Delete"
NOTE: The following will appear (except .extension will be the file extension that was being handled):
The handler for .extension has been removed.
Troubleshooting: If files with special handlers are not opening properly, try removing their handlers and recreating them.