Fortinet white logo
Fortinet white logo

Handbook

Configuring error pages

Configuring error pages

When backend real servers are unavailable, FortiADC can respond to clients attempting HTTP/HTTPS connections with an HTML error page. Once you create an HTML error page, you can select it in virtual server configurations.

You do not have to create an HTML error page if you want to simply send a basic text error message when backend servers are unavailable. Instead, you can enter an error message in a text box from within the virtual server configuration. See Error Message.

Before you begin:

  • You must have Read-Write permission for Server Load Balance settings.
  • Copy the error message file to a location you can reach from your browser; the error message file must be named index.html and contained in a tar, tar.gz, or zip file. The maximum file size is 1 MB.
To upload an error message file:
  1. Go to Server Load Balance > Application Resources.
  2. Click the Error Page tab.
  3. Click Create New to display the configuration editor.
  4. Enter the name of the error page. You will use this name to select the error page in virtual server configurations. No spaces.
  5. Click Choose File and browse and select the error message tar, tar.gz, or zip file. The maximum file size is 1MB.
  6. Save the configuration.

It is possible to modify error pages that you have already created. To do so, double-click the error page or select the (edit) icon in the row of the error page that you want to modify, and upload a new error message tar, tar.gz, or zip file as above.

Note: While it is possible to modify the error message file, once an error page is created, you cannot modify its name.

Configuring error pages

Configuring error pages

When backend real servers are unavailable, FortiADC can respond to clients attempting HTTP/HTTPS connections with an HTML error page. Once you create an HTML error page, you can select it in virtual server configurations.

You do not have to create an HTML error page if you want to simply send a basic text error message when backend servers are unavailable. Instead, you can enter an error message in a text box from within the virtual server configuration. See Error Message.

Before you begin:

  • You must have Read-Write permission for Server Load Balance settings.
  • Copy the error message file to a location you can reach from your browser; the error message file must be named index.html and contained in a tar, tar.gz, or zip file. The maximum file size is 1 MB.
To upload an error message file:
  1. Go to Server Load Balance > Application Resources.
  2. Click the Error Page tab.
  3. Click Create New to display the configuration editor.
  4. Enter the name of the error page. You will use this name to select the error page in virtual server configurations. No spaces.
  5. Click Choose File and browse and select the error message tar, tar.gz, or zip file. The maximum file size is 1MB.
  6. Save the configuration.

It is possible to modify error pages that you have already created. To do so, double-click the error page or select the (edit) icon in the row of the error page that you want to modify, and upload a new error message tar, tar.gz, or zip file as above.

Note: While it is possible to modify the error message file, once an error page is created, you cannot modify its name.