Apache Server Side Includes
To allow server side includes (SSI) in any directory do the following:
- Uncomment out the following "AddType" directive in the ~/www/conf/httpd.conf
file on your Virtual 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 ~/www/conf/httpd.conf file:
Options Indexes FollowSymLinks Includes
- Restart your web server:
% restart_apache
|
|