
HTTP Administration 8-9
7KH5HGLUHFW5XOH
The redirect rule specifies that if a component of a URL matches the template, the
request is redirected to the URL defined in the
result
field. The
result
field for
the redirect rule must be specified as a complete URL beginning with
http:// and the
host name.
For example, if
/etc/httpd.translations contains the following entry
UHGLUHFWFJLELQKWWSFJLKRVW
the filer redirects CGI requests to another HTTP server named cgi-host. This is essen-
tial for calls to
cgi-bin because the filer does not execute them.
7KH3DVV5XOH
The pass rule specifies that if a component of a URL matches the template, the filer
accepts the request, processes the request as is, and disregards other rules.
For example, if
/etc/httpd.translations contains the following entry
SDVVLPDJHELQ
the filer processes the request for any URL containing /image-bin as is, even though
there is another rule specified as follows:
PDSLPDJHELQXVUORFDOKWWSLPDJHV
If the pass rule includes the
result
field, the filer accepts the request, processes
the request by using the URL defined in the
result
field, and disregards other
rules.
7KH)DLO5XOH
The fail rule specifies that if a component of a URL matches the template, the filer
denies access to that component and disregards other rules.
For example, if
/etc/httpd.translations contains the following entry
IDLOXVUIRUELGGHQ
the filer does not provide access to the /usr/forbidden directory.
+RZWKH)LOHU3URFHVVHV5XOHV
The filer processes the rules defined in /etc/httpd.translations in the order they are
listed, and applies the rule if the URL matches the template. However, the filer stops
processing other rules after it applies a pass or fail rule.
In the
template
or
result
field of an /etc/httpd.translations entry, you can use
asterisks (*) as wildcard characters, as follows:
In the
template
field, the wildcard character matches zero or more characters,
including the slash (/) character.