Forum Moderators: phranque

Message Too Old, No Replies

SSI on microsoft XP not working

any suggestions?

         

malcolmcroucher

3:25 pm on Oct 31, 2007 (gmt 0)

10+ Year Member



I cant seem to get microsoft XP server side inclusions working on apache?

does anyone know some good set up techniques?

jdMorgan

7:06 pm on Oct 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How does it "not work"?
You'll need
Options +Includes
in order to enable SSI, and then either use .shtml file extensions or use the
XBitHack
directive (see Apache mod_includes).

Jim

malcolmcroucher

1:28 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



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.)"

malcolmcroucher

1:29 pm on Nov 1, 2007 (gmt 0)

10+ Year Member



how do you run chmod?

jdMorgan

3:55 pm on Nov 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



chmod is a *nix command, so trying to use it to set the 'executable' bit on the files won't work on Windows.

Jim