Configure and Create or Delete custom Apache handlers in cPanel

What is Apache Handlers

Apache handlers control how your Apache web server software-that host your site- to manages certain file types and file extensions. Apache can handle CGI scripts and server-parsed files. The file extensions for these files include .cgi, .pl, .plx, .ppl, .perl, and .shtml. If you also wanted to process files that have .script extensions as Perl files, you could set up a custom Apache handler for your site.

The difference between MIME Types and Apache handlers. MIME types instruct the browser how to process files, whereas Apache handlers instruct the web server how to process files.

How to Add a custom Apache handler

  1. Login to your cPanel control panel.
  2. From home cPanel dashboard page locate Advanced section and click Apache Handlers icon.
  3. From Apache Handlers Page under Create an Apache Handler enter the followings:
    1. Handler:Enter the handler name in the Handler text box.Please note that Apache handler names must include a hyphen (for example, handler-customname)
    2. Extension(s):Enter the file extension or extensions that you want to be processed by the handler. You should add period (‘.’) before the extension name.To add more than one extension enter Space-separate between multiple extensions (for example, .cgi .pl .ppl).
  4. Click Add button.
From this Page you can view the System Apache Handlers that supported by web server Apache.

Please note that Adding custom Apache handlers can cause unintended effects.

How to Delete User Defined Apache Handlers

  1. Login to your cPanel control panel.
  2. From home cPanel dashboard page locate Advanced section and click Apache Handlers icon.
  3. From Apache Handlers Page under Create an Apache Handler table you can choose the user custom Apache handler that you added and from the action column click Delete link to remove the Apache handler.And click Delete Handler confirm button to remove permanently the Apache handler.

1,466 total views, 4 views today

Configure and Create or Delete custom Apache handlers in cPanel
5 (100%) 1 vote

Leave a Reply

Your email address will not be published. Required fields are marked *

*