I saw this useful message on a server mailing list I monitor:
Question: "Is it possible to force ssi on .html file extensions?"
Answer: "Yes, by adding this line to .htaccess:
AddHandler server-parsed .html
Question: "If so, are there any dangers running ssi in this manner?"
Answer: "Yes, you will take a performance hit -- because every web page, whether it has SSI directives or not, will have to be parsed for
SSI before it is served up.
A much cleaner solution is to take advantage of XBitHack, which is
turned on in the Signature web server configuration. When you set
the executable bit on an HTML file, it tells the server to parse that
file for SSI. So for each file with server-side includes, just run:
chmod +x filename.html
Then the server will only do parsing for SSI on the files that
really need it. (Be sure to remove that line above from .htaccess
if you decide to use XBitHack.)"
Thanks for the tip!
Posted by Scott Girard on 9/12/06; 12:38:29 PM
from the News dept.
|