Help - Search - Members - Calendar
Full Version: Apache handlers and web files
The Planet Forums > Control Panels > cPanel/WHM
electron
Hello all. Not sure where Apache issues would go but since I have a cpanel server, I'll post this here. icon_smile.gif I am creating a website. I know most html pages end with the extension .htm or html. What if wanted to have them end with .cmh ? I wrote a test html page and renamed the extension to .cmh, then I configured the Apache handler mod_asis to treat it "as is" - like a webpage. It seems to come up just as before. I read something or other about Apache not adding all the headers to the files when mod_asis is enabled, but could not find further information. Does anyone here know what are the benefits or consequences of have it setup this way? Should I just leave them as .htm or could I make the entire website .cmh. I just wanted to give the site a little more "customization"... Thanks for any information. icon_wink.gif
Pimpenstein
I think you would just need to add the following to your httpd.conf..

AddType text/html .cmh


no need to use any special handlers or apache mods if it is just a plain html/text. You can even do it per site from the add mime types in the sites cpanel.
electron
Thank you Pimpenstein!!!1 I will try that. icon_smile.gif
Pimpenstein
Anytime
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.