SSI Directives

To enable Apache SSIs, edit access.conf and add Includes to the Options directive.
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you (or at least, not yet).

Options Indexes FollowSymLinks ExecCGI Includes
  Then edit srm.conf and uncomment the AddType and AddHandler as illustrated below.  
# To use server-parsed HTML files
AddType text/html .shtml
AddHandler server-parsed .shtml
  Note: .shtml file extension is only a convention. Your SSIs file can have any extension, including .html but this would cause all .html files to be parsed by Apache, which could cause considerable process overhead on you system.

You might also consider adding index.shtml to the DirectoryIndex directive in srm.conf.

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.

DirectoryIndex index.html index.shtml
  which will enable Apache to use index.shtml as the index page to any particular directory.

Remember:Re-start Apache after you have changed the configuration.


Apache Directives


Introduction to SSIs   RTFM Index   SSIs in Action
Copyright © 2006 Open Source Migrations ltd. All Rights Reserved.
Apache RTFM last updated Saturday October 21 2006