In the appropriate <Directory> sections of
the server configuration file httpd.conf (or
.htaccess files), include the following
directive:
Options+ Includes
In the main configuration file, you must specify the parsed file type
(.shtml) and associate it with the
INCLUDES filter, which implements the SSI module
mod_include. For example, the following two
lines specify that the server should handle documents with the
.shtml suffix as HTML documents, and parse them
for SSI:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Prior to Apache 2.0, the server-parsed handler
implemented the SSI module with:
AddHandler server-parsed .shtml
If you specify the suffix .html here, the server
would parse all HTML documents. This would make it easier to modify
files without having to worry about changing link and other issues,
but it would cause a noticeable performance hit to the server. An
alternate method to using the .shtml file
extension is to use the XBitHack directive:
XBitHack on
This tells Apache to parse for SSI any file that has the executable
permission set. You can do this for a file with the following
command:
chmod +x filename.html