Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Can't this be done with AddHandler?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Can't this be done with AddHandler?
Authored by: foamy on Oct 19, '01 08:02:43PM

Search httpd.conf for
AddHandler server-parsed .shtml

and add

AddHandler server-parsed .html

You may need to include the following line like in the .shtml example
AddType text/html .html

I have .html parsed by the PHP interpreter or I would check myself to see if this works.



[ Reply to This | # ]
All vs specific?
Authored by: robg on Oct 19, '01 08:53:11PM

I'm a bit out of my league here, but I think the advantage of this method is that it won't parse ALL your HTML files -- if you don't set the execute bit, it's regular HTML; if it's excectuable, then it gets parsed. It's my understanding that there are overhead issues involved in parsing all the HTML files. It's better to parse just those files that require it.

But as I said, this is beyond my skills with Apache - any experts care to comment?

-rob.



[ Reply to This | # ]