Tag Archive 'apache handlers'

Apache Handlers - cPanel Tutorial Ch.18

Many hosting servers rely on other open source software to make their service a success.  Some of the best programs come with Apache.  Apache is configured to work with most Linux (Unix) servers and even a few hosts operating Windows.  

WHAT ARE APACHE HANDLERS?

You may be curious to know just what defines an Apache handler.  This simply represents the action to be performed when a file is called upon.  In many instances files are called by the server, though they can also be handled separately.  Apache Handlers are very similar to MIME types though instead of instructing a browser on how to handle a file they instruct the web hosting server on how to handle the file.

Apache handlers can be added through action directives, built into a server or automatically included into the web hosts.  cPanel comes with available Apache handlers.  Below is a list of built in handlers you will find standard on most cPanel web hosting servers:

- default-handler: This will deliver your file with the “default_handler”, your default file to management the statistical contents of the site.
- send-as-is: This sends the file with HTTP headers and as is.
- cgi.script: This will treat this file as a CGI script
- imap-file: This is used to parse as an imagemap rule file
- server info: This retrieves the configuration info of your server
- server parsed: This will parse for your server side
- server-status: This will show a status report of your web server
- type-map: This will parse files as a type map file to negotiate content 

ADD APACHE HANDLERS

- First log in to your cPanel
- On the main page should see the “Apache handlers” button.  Click it
- Enter the file extension into the field, remembering to add a period before the file name
- Enter your Apache Handler in the field.  A list of system wide handlers will explain how to add new Apache handlers or use pre-existing ones.  
- After entering the appropriate Apache Handler simply click the “add” button  

Most cPanel web hosting servers have set rules already in place, two of the most common being cgi.pl and .shtml

Keep in mind that Apache Handlers only function with server side scripting. Some web language must be setup as MIME types.  Be sure to confer with your web hosting server before adding to add Apache Handlers as they can usually make automatic adjustments to help with your goals.  Typing in the wrong handler or file extension may result in your website functioning incorrectly.

HOW TO DELETE APACHE HANDLERS

It is very important to remember that Apache Handlers defined by your server may not be erased by end users.  The administrator of your server must perform this task.  In most instances there is absolutely no need for this to happen.  With that said, deleting handlers that you have added is a simple process.  This can be done by simply clicking the defined file extension you set up and clicking the “delete” button.