Configuring error responses

In the WAF Cluster wizard, you can select Redirect from the Action dropdown, and then choose a "permanent" redirection code (HTTP status code 301) or "temporary" redirection (HTTP status code 302) and specify the full URL where web client needs to be redirected. Requests will be blocked unless you enter a redirect URL, and the status code selection will be disabled unless the URL is valid.

Want to turn off a redirect? Just remove the URL in the Redirect URL field.

You can select Block from the Action dropdown to display the default WAF error page.

You can choose to display a custom response page whenever a request cannot be routed to your origin server. If you wish to use custom response, select Custom Response from Action, and then select a custom response page that you have created. Click Edit to modify the selected custom response page, or click Create to add a new custom response page.

Good to know

Requests are routed to the right web application using the requested virtual host name given within the request. Remember that virtual host name is located in “Host” request HTTP header or specified early when using HTTPS using SNI SSL extension. When a request reaches the WAF appliance, the requested host name may not be known or properly declared so a specific error handling process is needed to generate a response to web clients. Also note that host name can be properly defined but a given path in an HTTP request does not match any declared WAF web application configuration.