iTP Secure WebServer System Administrators Guide (Version 7.5+)

sizefmt
determines the formatting to be used for displaying the size of a file. The two values
are bytes, for displaying a formatted byte count (formatted as 1,234,567); and
abbrev, for displaying an abbreviated version consisting of the number of kilobytes
or megabytes the file occupies. For example:
<!--config sizefmt="bytes"-->
size=<!--#fsizefile="size"-->
Output:
size=1,652,708
include
inserts the text of a document into the parsed document. Any included file specified
as virtual is subject to any region commands that apply to its URL. This command
accepts two tags:
virtual
gives a virtual path to a document served by the local server. You might only access
a text file (for example, plain text, HTML, or parsed HTML) this way. You cannot
access an executable file in this fashion. However, you can access another parsed
document. For example:
<!--#include file="text.html"-->
file
gives a path name relative to the directory in which the document with the
#include occurs. The path ./ cannot be used in this path name, nor can absolute
paths be used. As for the virtual option, you can access other static documents, but
not CGI scripts. For example:
<!--#include file="text.html"-->
echo
prints the value of the specified CGI environment variable or SSI variable (see
“Region Directive Variables for Anonymous Sessions (page 180)). Dates are printed
using the currently configured timefmt value. The only valid tag for this command
is var, whose value is the name of the variable you want to echo. For example:
<!--#echovar="DOCUMENT_NAME"-->
exec
executes a given shell command or CGI script and inserts the results in the document.
Any included file specified as CGI is subject to the region commands that apply to
its URL. The exec command is enabled only if the -restricted option of the
EnableIncludes directive is set. The exec command accepts the following tags:
cmd
executes a given command string using /bin/sh (the Bourne shell) and inserts the
results in the document. All the variables listed in “Region Directive Variables for
Anonymous Sessions” (page 180) can be accessed by parsed documents. For
example:
<!--#exec cmd="ls -l var=DOCUMENT_NAME"-->
cgi
executes a given CGI script (specified by virtual path name and access control)
and inserts the results into the document. The path name is relative to the location
of generic-cgi.pway. For example, if the htppd.config file contains
132 Configuring the iTP Secure WebServer