Host-Mirror.Com

Login Form






Lost Password?
No account yet? Register

Search

Who's Online

We have 1 guest online
Advertisement
Dinsol.com
Dinsol.com started in 1999 and is very reputed web hosting provider.
More  ]
HostAbove.com
HostAbove.com offers advance web hosting platform with number of features.
More  ]

Syndicate

How to use Apache Handlers and MIME Types in cPanel control panel? Print E-mail
User Rating: / 1
PoorBest 
Monday, 04 February 2008
Do you want to enable customized file type instruction for Apache? Apache handlers is the answer for that. Or do you have to tell browsers about how to see an specific file extension? cPanel provides MIME type setup facility. In this tutorial we will learn in details about Apache Handler and MIME Types. We will also learn how to setup both of them easily using cPanel.


Apache Handlers

Apache handlers allow you to control what Apache will do with certain file types. When Apache sees a file, it has an action built in for that file type, and will perform that action. If you wish Apache to do a different action, you will need to make a handler to tell Apache to perform that action. For example, if you use a file type that requires a special service to run it, such as a file with server side includes that is not named with a .shtml extension, you need to tell Apache to treat these files differently. More information on Apache's Handlers can be found at http://httpd.apache.org/docs/1.3/handler.html .

Creating An Apache Handler
1. Enter the handler you want to create in the first empty text box.
2. In the second empty text box, enter the extension the handler will use when being called.
3. Click on the "Add" button.


MIME Types

MIME Types tell browsers how to handle specific file extensions. For example, the text/html MIME Types equates to .htm, .html, and .shtml extensions on most servers, telling your browser to interpret all files with those extensions as HTML files. You can alter or add new MIME Types specifically for your site (Note: You cannot alter the system defined MIME Types values). MIME Types are often used to handle new technologies as they appear. When WAP technology first appeared, no one had these extensions set up on their server. With MIME Types, however, you could have set it up yourself and began serving WAP pages immediately.

To learn more about MIME Types, view the WikiPedia web page at http://en.wikipedia.org/wiki/MIME .

Creating A MIME Type
1. Enter the MIME Type you want to create in the "Mime Type" text box.
2. Enter the Extension of the MIME Type you entered in Step 1 above in the "Extension(s)" text box.
3. Click on the "Add" button.
 
Next >