Server Side Includes (SSI)


Most ISPs web servers allow users to create documents which provide simple information to your client (NetScape, Mosaic, Explorer) on the fly. Such information can include the current date, the file's last modification date, and the size or last modification of other files. In its more advanced usage, it can provide a powerful interface to CGI and /bin/sh programs. For those of you interested in using Server Side Includes (SSI) following are the instructions as provide by NSCA.

Note: the documents that use SSI must have an shtml extension.


NCSA HTTPd Tutorial: Server Side Includes (SSI)

NCSA HTTPd allows users to create documents which provide simple information to clients on the fly. Such information can include the current date, the file's last modification date, and the size or last modification of other files. In its more advanced usage, it can provide a powerful interface to CGI and /bin/sh programs.


The SSI Format

All directives to the server are formatted as SGML comments within the document. This is in case the document should ever find itself in the client's hands unparsed. Each directive has the following format:

<!--#command tag1="value1" tag2="value2" -->

Each command takes different arguments, most only accept one tag at a time. Here is a breakdown of the commands and their associated tags:


SSI Environment Variables

A number of variables are made available to parsed documents. In addition to the CGI variable set, the following variables are made available: