Apache handlers are an essential component of web server configuration. They determine how specific file types are processed by the server. For instance, Apache is typically configured to process files with .pl extensions as Perl files. However, if you want to process files with .script extensions as Perl files as well, you can set up a custom Apache handler for your website.
It's important to note the distinction between MIME types and Apache handlers. MIME types instruct the browser on how to handle files, while Apache handlers instruct the server on how to process files.
Adding custom Apache handlers can significantly impact the functionality of your website and may lead to unintended consequences. If you require further assistance, it is advisable to reach out to the support team at Turnuphosting through the Customer Portal at https://my.turnuphosting.com.
To add a custom Apache handler, follow these steps:
- Log in to cPanel.
- Navigate to the Apache Handlers tool, click on "Apache Handlers" in the Advanced section on the Tools page.
- Under "Create an Apache Handler," enter the name of the handler in the "Handler" text box.
- Specify the file extension(s) that you want the handler to process in the "Extension(s)" text box. Remember to include a period ('.') before the extension name.
- Click on "Add" to add the custom handler.
If you need to delete a custom Apache handler, follow these steps:
- Log in to cPanel.
- Access the Apache Handlers tool as described above.
- Under "User Defined Apache Handlers," click on "Delete" in the Actions column for the custom handler you wish to remove.
- Confirm the deletion by clicking on "Delete Handler."
Please note that system-wide Apache handlers cannot be deleted. If you encounter any issues with a system-wide Apache handler, it is recommended to contact the Turnuphosting support team for assistance.