Server Side Includes

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,398
Location
London UK
I can confirm the +Includes are enabled by default.

A customer is trying to get SSI working, but to no avail.

I even tried

<!--#echo var="DATE_LOCAL" -->

Result is blank......... Any ideas guys?
 
Have you checked the custom httpd.conf, maybe it overruled the default httpd.conf (main) config?

On my old server I had it working, but never enabled it again on my new box
 
Actually, I never used SSI in my life! So I did't know you need .shtm/.shtml for every file, even the calling file! <face palm>
 
You can change the configuration to look for ssi calls in any file extension.
 
SSI uses the .shtm/.shtml extensions by default because generally .htm/.html files aren't read by apache at all; they're just served. For SSI to work the file must be parsed in full by apache, which on a busy server can take time. (Similarly to how .php files must be parsed.)

If you change the configuration to allow other extensions, then those extensions will be parsed as well, which could result in an unacceptable server load depending on your server's resources.

Jeff
 
Back
Top