Advanced
Apache Handlers
Updated: 26 February 2024
cPanel Version: 118
Apache mod_mime - Apache Documentation
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
- Log into your cPanel account.
- In the search bar at the top of the page, type in 'Apache Handlers'.
- Click on the Apache Handlers icon under the Advanced section.
Creating an Apache Handler
To create a new Apache Handler, follow these steps:
- Under the Create an Apache Handler section, you will see two boxes: Handler and Extension(s).
- In the Handler box, type in the handler code. This code determines what the Apache web server will do with the specific file type.
- 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).
- 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:
- Under the User Defined Apache Handlers section, find the handler you want to remove.
- Click on the Delete button next to the handler.
- 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 DocumentationApache mod_mime - Apache Documentation