The Apache Handlers interface in cPanel lets you control how the Apache web server processes specific file types and extensions on your website. By configuring Apache handlers, you can customize the way your server handles files with particular extensions, enabling advanced functionality and better control over content delivery.
What Are Apache Handlers?
Apache handlers are directives that tell the Apache web server how to process files with certain extensions or names. For example, files with the .php extension are typically handled by the PHP interpreter.
By using the Apache Handlers interface, you can add new handlers or modify existing ones, instructing Apache to:
- Process custom file types with existing handlers
- Define special behaviors for files with unique extensions
- Ensure proper execution of scripts and applications
Why Use Apache Handlers?
- Add support for new file types: If your website uses files with custom extensions, you can map them to an existing handler so Apache knows how to serve them.
- Enhance performance: Customize handlers to optimize how certain file types are processed.
- Enable specific server behaviors: For example, treating certain files as CGI scripts or forcing MIME types.
How to Use the Apache Handlers Interface
- Log in to your cPanel account.
- Locate and click the Apache Handlers icon (often found under the Advanced or Software section).
- To add a new handler:
- Enter the Handler name (e.g., application/x-httpd-php).
- Enter the Extension(s) associated with this handler (e.g., .customphp).
- Click Add to save the new handler.
- To remove or modify existing handlers, use the interface options to edit or delete entries.
Example Use Cases
Scenario | Handler Configuration |
---|---|
Serve .foo files as PHP scripts | Handler: application/x-httpd-phpExtension: .foo |
Treat .cgi files as executable CGI scripts | Handler: cgi-scriptExtension: .cgi |
Force .xyz files to be downloaded instead of displayed | Handler: default-handlerExtension: .xyz |
Important Notes
- Incorrectly setting handlers can cause your website to behave unexpectedly or create security risks.
- Only add handlers if you understand how they affect your site’s processing.
- Consult your hosting provider or developer if unsure about handler configurations.
Apache Handlers on Govaio Hosting
At Govaio.com, we provide full cPanel access including the Apache Handlers interface so you can customize how your web server manages file types and extensions.
Need help configuring Apache handlers or optimizing your server? Contact our support team at:
📞 +91-657-3599171
🌐 www.govaio.com