iTP Secure WebServer System Administrator's Guide (Version 7.0)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—523346-012
7-55
Setting Up a Server-Side Include (SSI)
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
Table 11-2, Region Directive Variables for Anonymous Sessions, on page 11-16).
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:
<!--#echo var="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 Table 7-2, Region
Directive Variables, on page 7-41 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
Region/test {Filemap/ test $root/cgiscripts
DirectoryIndex
EnableIncludes - restricted}
then, the cgi script at
/usr/tandem/webserver/cgiscripts/test.cgi
will be executed.