doc: fix error pages configuration.

This commit is contained in:
Fernandez Ludovic 2017-09-01 10:06:08 +02:00 committed by Traefiker
parent d5bbb103d4
commit 425b53585a

View file

@ -404,14 +404,14 @@ Here is an example of backends and servers definition:
Custom error pages can be returned, in lieu of the default, according to frontend-configured ranges of HTTP Status codes. Custom error pages can be returned, in lieu of the default, according to frontend-configured ranges of HTTP Status codes.
In the example below, if a 503 status is returned from the frontend "website", the custom error page at http://2.3.4.5/503.html is returned with the actual status code set in the HTTP header. In the example below, if a 503 status is returned from the frontend "website", the custom error page at http://2.3.4.5/503.html is returned with the actual status code set in the HTTP header.
Note, the 503.html page itself is not hosted on traefik, but some other infrastructure. Note, the `503.html` page itself is not hosted on traefik, but some other infrastructure.
```toml ```toml
[frontends] [frontends]
[frontends.website] [frontends.website]
backend = "website" backend = "website"
[errors] [frontends.website.errors]
[error.network] [frontends.website.errors.network]
status = ["500-599"] status = ["500-599"]
backend = "error" backend = "error"
query = "/{status}.html" query = "/{status}.html"