mod_include.c
file, and
is compiled in by default. It provides for server-parsed html documents,
known as SPML documents.
Any document with mime type text/x-server-parsed-html
or
text/x-server-parsed-html3
will be parsed by this module,
with the resulting output given the mime type text/html
.
The value will often be enclosed in double quotes; many commands only allow a single attribute-value pair.<!--#
element attribute=value attribute=value ...-->
The allowed elements are:
bytes
for a count in bytes, or
abbrev
for a count in Kb or Mb as appropriate.
strftime(3)
library
routine when printing dates.
(none)
.
Any dates printed are subject to the currently configured timefmt
.
Attributes:
The CGI script is given the PATH_INFO and query string (QUERY_STRING) of the original request from the client; these cannot be specified in the URL path. The include variables will be available to the script in addition to the standard CGI environment.
If the script returns a Location: header instead of output, then this will be translated into an HTML anchor.
The include virtual
element should be used in preference to
exec cgi
.
/bin/sh
.
The include variables are available to the command.
sizefmt
format specification. Attributes:
timefmt
format specification. The attributes are
the same as for the fsize
command.
An attribute defines the location of the document; the inclusion is done for each attribute given to the include command. The valid attributes are:
../
, nor can it be an
absolute path. The virtual
attribute should always be used
in preference to this one.
echo
command, and to any program
invoked by the document.
XBitHack off
The XBitHack directives controls the parsing of ordinary html documents. Status can have the following values:
on
but also test the group-execute bit. If it
is set, then set the Last-modified date of the returned file to be the
last modified time of the file. If it is not set, then no last-modified date
is sent. Setting this bit allows clients and proxies to cache the result of
the request.