iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-002
A-44
Region Commands
To use DisableCloseNotify in a Region directive, enter the following:
Region /* {
if {[info exists HEADER(user-agent)]
&& [string match "*MSIE*" $HEADER(user-agent)]} {
DisableCloseNotify
}
}
EnableIncludes [-restricted] [-nesting level]
The EnableIncludes command permits the full or partial use of server-side
includes (SSIs) on particular regions. For information about setting up SSIs on the
server, see Setting Up a Server-Side Include (SSI) on page 7-49.
The EnableIncludes command accepts the following arguments:
-restricted
Use the -restricted argument to fully enable the use of SSIs on a given
region, including the use of the exec command (see SSI Directives on
page 7-51). If you specify the EnableIncludes command without the
-restricted argument, SSIs are enabled for the given region but the exec
command is disabled.
-nesting level
Use the -nesting argument to specify the number of nesting levels (level)
allowed in a document include. The default is 3, meaning, for example, that
document 1 can include document 2, which can include document 3, which can
include document 4 (four documents, three levels of nesting).
By default, SSIs are fully disabled.
To use EnableIncludes in a Region directive, enter the following:
Region * {{
EnableIncludes -restricted 1 -nesting 1
}
EncodingType code-type extension-list
The EncodingType command specifies the identifier of the encoding type
(code-type) to be returned to a web client requesting a file whose extension
matches an extension listed in extension-list. The returned encoding type
identifies to the web client the kind of decoding it must perform on the file content
before it can be viewed by the user. This decoding is usually a form of
decompression.
The items in extension-list are separated by blank spaces.
The EncodingType command overrides for specified regions any global
specifications set for the same items by the EncodingType directive. For further