Sunday, July 8, 2012

Enabling Server Side Includes - SSI on Apache 2

Enabling Server Side Include for Apache is a very simple process.

First thing first, you have to includes make sure APache knows which file to be parsed with should be parsed using SSI

At /etc/httpd/conf/httpd.conf, ensure the following has been done.
AddType text/html .shtml
AddHandler server-parsed .shtml

The next thing is to ensure that the Directory Section of the Apache where the .shtml reside should contains this. This is epsecially true if you set the AllowOverride

<Directtory /home/tester/public_html>
Options +Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory >

For more information and resources, see
  1. Apache Module mod_include
  2. Why my Apache Server Side Include (SSI) is not working?

No comments: