bartop


dot pictureservices picturedot picturesupport picture
dot picturecontact picturedot pictureabout picture
dot picturehome picture

header

Navigation

Home
About BIGSEA
Support
Contact
Services
Clients
Rev9
Links
Radio-Dadio


Discussion

Today's Discussion
Create New Topic
List by Topic


Search BIGSEA

Atomz Search:


Advanced Atomz



Server Side Includes and the xBit Hack

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!
Prev | Next | Server Side Includes and the xBit Hack


BIGSEA
A metaphor. A philosophy. A way of doing business.

Copyright 1997-2006 - Last update: Tuesday, September 12, 2006 at 12:38:55 PM