Apache Handlers
Posted by David, Last modified by Ashley L on 18 November 2019 04:03 PM

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:

  1. Click on the icon above the words "Apache Handlers" on the main screen of your cPanel interface
  2. Enter the extension(s) you wish to associate with the service that they will be using in the blank field below extension(s)
  3. 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: 

  1. To access "Apache Handlers," click on the icon above the words "Apache Handlers" on the main screen of your cPanel interface
  2. 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):

Handler Removed
The handler for .extension has been removed.
 
Troubleshooting: If files with special handlers are not opening properly, try removing their handlers and recreating them.

 

 

(343 vote(s))
Helpful
Not helpful