Server
Side Includes (SSI) allows simple dynamic features to
be added to an HTML document without the complexity of
CGI's. (Do not confuse this with SSL, Secure Socket Layer.)
SSI uses two different steps. First, set up your server
to parse specific documents for SSI commands. Second,
make sure your documents have embedded SSI commands.
Setting Up SSI
- Edit the httpd.conf
file by doing the following:
- Uncomment out the
AddType directive:
AddType text/x-server-parsed-html
.html
- You may want to add
a type for .htm files:
AddType text/x-server-parsed-html
.htm
- From the httpd.conf
file, under Options, add Include/Root Document declaration:
Options Indexes
FollowSymLinks Includes
- Restart your web
server:
% restart_apache
Note: To avoid
creating extra load on the Apache server, you should
make files containing SSI commands with a .shtml
extension. The AddType reads: AddType text/x-server-parsed-html
.shtml. (The Apache httpd does not have to parse
every file.)
Server Side Include
Commands
For complete information
on Server Side Includes, see the Apache
Week Article and the NCSA
Includes tutorial
|