Advanced

Apache Handlers

Updated: 26 February 2024
cPanel Version: 118

Apache Handlers instruct the Apache web server how to deal with web files and extensions. They manage how your server processes these files when accessed by a browser. This tutorial will guide you through the process of managing Apache Handlers in cPanel.

Accessing Apache Handlers in cPanel

  1. Log into your cPanel account.
  2. In the search bar at the top of the page, type in 'Apache Handlers'.
  3. Click on the Apache Handlers icon under the Advanced section.

Creating an Apache Handler

To create a new Apache Handler, follow these steps:

  1. Under the Create an Apache Handler section, you will see two boxes: Handler and Extension(s).
  2. In the Handler box, type in the handler code. This code determines what the Apache web server will do with the specific file type.
  3. In the Extension(s) box, type in the file extension that you want the handler to manage. Make sure to start the extension with a dot (e.g., .html, .php).
  4. Click on the Add button to save your new handler.

Remember

A single handler can be used for multiple file extensions. Just separate each extension with a space.

Removing an Apache Handler

If you no longer need a handler, you can easily remove it. Here's how:

  1. Under the User Defined Apache Handlers section, find the handler you want to remove.
  2. Click on the Delete button next to the handler.
  3. A confirmation message will appear. Click on the Delete button again to confirm.

Caution

Be sure you want to remove the handler, as this action cannot be undone.


External links

Apache Handlers - cPanel Documentation
Apache mod_mime - Apache Documentation