1. 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
NOTE: If your Virtual Server was configured before Dec 8,
1998 you should instead uncomment out the following AddType
directive in the ~/www/conf/srm.conf file to designate
that all .shtml
files be parsed by the web server for server side includes:
AddType text/x-server-parsed-html .shtml
If you also want .html
and .htm
files to be parsed for server side includes, add the following
lines:
AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .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
NOTE: If your Virtual Server was configured before Dec
8, 1998 you will need to make this change in the ~/www/conf/access.conf
file instead.
2. Restart Your Virtual Server Web Server
Telnet to your server and type
% restart_apache