config : server-policy custom-application application-policy
 
server-policy custom-application application-policy
Some web applications build URLs differently than expected by FortiWeb, which causes FortiWeb to create incorrect auto-learning data.
To solve this kind of problem, FortiWeb uses application policy plug-ins that recognize the non-standard application URLs so that the auto-learning profile can work properly.
First create a URL interpreter (see “server-policy custom-application url-replacer”) and then use this command to create an application policy to use it.
To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For more information, see “Permissions”.
Syntax
config server-policy custom-application application-policy
edit <policy_name>
config rule-list
edit <entry_index>
set plugin-name <url-replacer_name>
set type {URL_Replacer}
next
end
next
end
Variable
Description
Default
<policy_name>
Type the name of a new or existing application policy. The maximum length is 35 characters.
To display the list of existing policies, type:
edit ?
No default.
<entry_index>
Type the index number of the individual rule in the table. The valid range is from 1 to 9,999,999,999,999,999,999.
No default.
plugin-name <url-replacer_name>
Type the name of an existing URL interpreter. The maximum length is 35 characters.
No default.
type {URL_Replacer}
Type the name of the plug-in type. (Currently, only the URL_Replacer option is supported.)
URL_Replacer
Example
This example adds two existing URL replacer plug-ins to an application policy.
config server-policy custom-application application-policy
edit replacer-policy1
config rule-list
edit 1
set plugin-name url-replacer1
next
edit 2
set plugin-name url-replacer2
next
end
next
end
Related topics
config server-policy custom-application url-replacer
config waf web-protection-profile autolearning-profile