[NAME] [SYNOPSIS] [DESCRIPTION] [INCLUDE FORMAT] [VARIABLES] [BUGS / DEFICIENCIES] [SEE ALSO] [AUTHOR]
ssi(8) MAINTENANCE COMMANDS ssi(8)
ssi - server-side-includes CGI program
ssi
This is an external CGI program that gives you the same functionality as the built-in server-side-includes feature in some HTTP daemons. It is written for use with thttpd(8), but should be easy to adapt to other systems.
To use this program, first make sure it is installed in your server's CGI area, and that CGI is enabled. Then set up your URLs with the path to the document you want parsed as the "pathinfo". That's the part of the URL that comes after the CGI program name. For example, if the URL to this program is:
http://www.acme.com/cgi-bin/ssi
and the url for your document is:
http://www.acme.com/users/wecoyote/doc.html
then the compound URL that gives you the document filtered through the program would be:
http://www.acme.com/cgi-bin/ssi/users/wecoyote/doc.html
The format description below is adapted from http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html
All directives 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:
A number of variables are made available to parsed documents. In addition to the CGI variable set, the following variables are made available:
Does not implement the "exec" directive. Actually, I consider this neither a bug nor a deficiency, but some may.
thttpd(8), strftime(3)
Copyright © 1995 by Jef Poskanzer <webmaster@mail.acme.com>. All rights reserved.