This text is from Apache's mod_include
documentation, but has been modified for use at UM.
SSIs that will work on the UM Web servers are:
config
This command controls various aspects of the
parsing. The valid attributes are:
errmsg |
The value is a message that is sent back to the
client if an error occurs whilst parsing the
document.
|
sizefmt |
The value sets the format to be used which
displaying the size of a file. Valid values are
bytes for a count in bytes, or abbrev for a
count in Kb or Mb as appropriate.
|
timefmt |
The value is a string to be used by the
strftime(3) library routine when printing
dates.
|
echo
This command prints one of the include variables, defined
below. If the variable is unset, it is printed as (none). Any
dates printed are subject to the currently configured timefmt.
var |
The value is the name of the variable to print.
|
fsize
This command prints the size of the specified file, subject to
the sizefmt format specification. Attributes:
file |
The value is a path relative to the directory
containing the current document being parsed.
|
virtual |
The value is a (%-encoded) URL-path relative to
the current document being parsed. If it does
not begin with a slash (/) then it is taken to
be relative to the current document.
|
flastmod
This command prints the last modification date of the specified
file, subject to the timefmt format specification. The
attributes are the same as for the fsize command.
include
This command inserts the text of another document or file into
the parsed file. Any included file is subject to the usual
access control. If including the document would cause a program
to be executed, then it will not be included; this prevents the
execution of CGI scripts.
An attribute defines the location of the document; the
inclusion is done for each attribute given to the include
command. The valid attributes are:
file |
The value is a path relative to the directory
containing the current document being parsed.
It cannot contain ../, nor can it be an
absolute path. The virtual attribute should
always be used in preference to this one.
|
virtual |
The value is a (%-encoded) URL relative to the
current document being parsed. The URL cannot
contain a scheme or hostname, only a path and
an optional query string. If it does not begin
with a slash (/) then it is taken to be
relative to the current document.
|
A URL is constructed from the attribute, and the output the
server would return if the URL were accessed by the client is
included in the parsed output. Thus included files can be
nested.
printenv
This prints out a listing of all existing variables and their
values. No attributes. For example:
<!--#printenv -->
set
This sets the value of a variable. Attributes:
var |
The name of the variable to set.
|
value |
The value to give a variable. For example:
<!--#set var="category" value="help" -->
|
|