FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
Khidzir_MN
Staff
Staff
Article Id 412987
Description This article provides a workaround for a custom Error Page for a Virtual Server with Content Routing.
Scope FortiADC and FortiADC-VM.
Solution

When using Content Routing for Virtual Server, the FortiADC does not reply with the custom Error Page but with the default Error Page for the 503 HTTP response status code when the client HTTP request does not match any Content Routing rule for the respective Virtual Server.

 

default_503.png

 

Step 1: Create a custom Error Page with a custom 503 page at Server Load Balance -> Application Resources -> Error Page.

 

custom_503_page.png

 

Step 2: Create a Real Server Pool with no members (empty) at Server Load Balance -> Real Server Pool -> Real Server Pool.

 

Step 3: Create a new Content Routing (for example, 'empty_cr') at Server Load Balance -> Virtual Server -> Content Routing, select the Real Server Pool created in Step 2, and configure its matching condition to match the Virtual Path of the custom Error Page created in Step 1 (for example, /adc-page/).

 

empty_content_routing.png

 

Step 4: Add the Content Routing to the respective Virtual Server.

 

vs_content_routing.png

 

Step 5: Verify the custom Error Page by reproducing the 503 HTTP response status:

 

custom_503.png

 

Related documents:
Configuring error pages

Configuring Virtual Server