iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)

Configuration Directives
iTP Secure WebServer System Administrator’s Guide—522659-001
A-13
Browser
For information about recording server and access errors, see Managing Log Files on
page 7-21.
Default
None. If you do not set the AccessLog directive, no access log file is generated.
Example
AccessLog /usr/tandem/webserver/logs/access.log
Browser
Syntax
Browser agent -redirectlimit url-length
Description
Use the Browser directive to specify the maximum HTTP redirect URL length
(url-length) that is supported by the specified browser (agent). Many browsers
have a limit (such as 128 characters) for the length of the URL specified in an HTTP
redirect operation. The agent argument matches against the content in the HTTP
User-Agent:
field.
For example, the following directive specifies that the maximum redirect URL length
for browsers that have names matching *NCSA Mosaic* is 128 characters:
Browser "*NCSA Mosaic*" -redirectlimit 128
Multiple Browser directives are allowed in the server configuration file (httpd.config);
these directives may have agent patterns that overlap. For example:
Browser "*NCSA*" -redirectlimit 128
Browser "*NCSA Mosaic*" -redirectlimit 256
When the contents of User-Agent: matches more than one agent pattern, the server
uses the Browser directive corresponding to the longest matching pattern. For
example, if User-Agent: contains the string NCSA Web Browser, the server uses the first
Browser directive above (with a redirect limit of 128); whereas if User-Agent:
contains the string NCSA Mosaic, the server uses the second Browser directive above
(with a redirect limit of 256).
The server uses the information provided by the Browser directive to modify the
HTTP redirect operation such that the web client operates correctly. If a redirect URL is
shorter than the redirect limit supported by the matched browser, the server returns an
HTTP redirect result directing the web client to the new location. If the redirect URL is
longer than the limit supported by the matched browser, the server returns a page
containing a link the user can select to go to the new location. This link page can be
customized (as described in Message
on page A-28).