Fortinet 369 FortiWeb 5.0 Patch 6 Administration Guide
5. If you selected Request Action in Action Type, in the Request Action drop-down list, select
one of the following:
Rewrite HTTP Header — Rewrites part(s) of the header in the HTTP request before
passing it to the web server.
Setting name Description
Host Enable then type either a host name, such as
store.example.com, or IP address if you want to replace the
value of the Host: field in the header of HTTP requests. Requests
will be redirected to this web host.
This field supports back references such as $0 to the parts of the
original request that matched any capture groups that you entered in
Regular Expression for each object in the condition table. (A capture
group is a regular expression, or part of one, surrounded in
parentheses. See “Regular expression syntax” on page 673.)
For an example, see “Example: Rewriting URLs using variables” on
page 384.
Using Physical
Server
Enable to insert the variable FORTIWEB_PSERVER in Host.
At the time of each specific HTTP request, FortiWeb will replace this
variable with the IP address of the physical server to which it is
forwarding the request.
Tip: Use this option when the Deployment Mode option in the server
policies using this rule is either Server Balance or HTTP Content
Routing. In such cases, by definition of load balancing, HTTP
requests will be distributed among multiple web servers, and the
specific IP addresses of the physical servers cannot be known in
advance.
URL Enable then type a string, such as /catalog/item1, if you want to
replace the URL in the HTTP request.
Do not include the name of the web host, such as
www.example.com, nor the protocol.
Like Host, this field supports back references such as $0 to the parts
of the original request that matched any capture groups that you
entered in Regular Expression for each object in the condition table
(see “What are back-references?” on page 678).
For an example, see “Example: Rewriting URLs using regular
expressions” on page 383.