Server Side Includes (SSIs) are simple directives embedded into HTML documents that instruct a Web server to dynamically include data in the HTML document.
Configuration
To configure the Virtual Private Server Apache Web Server to allow server side includes in any directory, connect to your Virtual Private Server via Telnet or SSH and do the following:
-
Uncomment the following AddType directive in the web server configuration file (~/www/conf/httpd.conf) on your Virtual Private Server to designate that all .shtml files be parsed by the web server for server side includes:
AddType text/html .shtml AddHandler server-parsed .shtml
If you also want .html and .htm files to be parsed for server side includes, add the following lines:
AddHandler server-parsed .html AddHandler server-parsed .htm
-
Add an Includes option to the Options for your Root Document declaration (<Directory /usr/local/etc/httpd/htdocs>) in the web server configuration file (~/www/conf/httpd.conf):
Options Indexes FollowSymLinks Includes
Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!
Copyright © 1996-2024, Integrated Technical Solutions, Inc., all rights reserved. See Terms/Legal for trademarks, copyright, and terms of use.
Naperville, IL 60563
fax 630.420.2771