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.htmland contained in a tar, tar.gz, or zip file. The maximum file size is 1 MB.
To upload an error message file:
- Go to Server Load Balance > Application Resources.
- Click the Error Page tab.
- Click Create New to display the configuration editor.
- Enter the name of the error page. You will use this name to select the error page in virtual server configurations. No spaces.
- Click Choose File and browse and select the error message tar, tar.gz, or zip file. The maximum file size is 1MB.
- 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.