FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
adumitru
Staff
Staff
Article Id 193489

Description

 
This article describes a troubleshooting step that may be used when the URL rewrite feature of FortiWeb does not work at all.
This feature is described in full detail in the 'Rewriting and Redirecting' section of the FortiWeb Administration Guide. 
This guide is available in the Fortinet Document Library.

Configuring this feature is not the purpose of this article, however, the logical steps are:
 
  1. Create a URL Rewriting Rule based on the given criteria.
  2. Create a URL Rewriting Policy to which one or more URL Rewriting Rules can be added.
  3. Apply the URL Rewriting Policy in an Inline Protection Profile.


Scope

 
FortiWeb.


Solution

 
FortiWeb cannot rewrite requests that exceed FortiWeb’s buffer size.

The default buffer size is currently set to 512kB. Increase the buffer size to a maximum of 1024kB then check if the rewrite works correctly.
This can be done either through GUI.
 
cache_advanced.png

See Maximum Body Cache Size in Admin Guide.

 

Or via CLI.

 
FVVM02-10 # config system advanced
FVVM02-10 (advanced) # set max-cache-size 1024
FVVM02-10 (advanced) # end
FVVM02-10 #
 
See max-cache-size in the CLI Guide.

Refresh the browser page to check if the rewrite now works as expected. If it does not, then it is possible to further increase the buffer size up to the maximum of 10240kB as of v7.0 and later.