Server
One line each, ready to copy. They expect the pages in /errors/ under the web root, unpacked from en/ or de/ of a ZIP. Every line has been tested in a container, 15.11.2026.
nginx
Inside the server block:
error_page 400 401 403 404 405 500 502 503 /errors/$status.html;Apache
Run in the web root, appends eight lines to .htaccess (needs AllowOverride FileInfo):
for c in 400 401 403 404 405 500 502 503; do echo "ErrorDocument $c /errors/$c.html"; done >> .htaccessCaddy
Inside the site block of the Caddyfile. Caddy does not allow a block on one line, so it takes four:
handle_errors {
rewrite * /errors/{err.status_code}.html
file_server
}HAProxy
Turns the pages into response files in /etc/haproxy/errors/ (Debian and Ubuntu already reference them with errorfile):
for c in 400 403 408 500 502 503 504; do [ -f $c.html ] && { printf 'HTTP/1.0 %s\r\nContent-Type: text/html; charset=utf-8\r\nCache-Control: no-store\r\nConnection: close\r\n\r\n' $c; cat $c.html; } > /etc/haproxy/errors/$c.http; doneTraefik
Starts a small container with the pages and defines the middleware. Then on your router: middlewares=fehlerseiten@docker
docker run -d --name fehlerseiten --network proxy -v "$PWD:/usr/share/nginx/html/errors:ro" -l traefik.enable=true -l traefik.http.services.fehlerseiten.loadbalancer.server.port=80 -l traefik.http.middlewares.fehlerseiten.errors.status=400-599 -l traefik.http.middlewares.fehlerseiten.errors.service=fehlerseiten@docker -l 'traefik.http.middlewares.fehlerseiten.errors.query=/errors/{status}.html' nginx:alpineISPConfig
Unpack the compact package, copy the ten files to /var/www/clients/client<N>/web<M>/web/error/ and switch on custom error documents in the website options. coming-soon.html also works as standard_index.html in web/.
HAProxy only accepts files that fit its buffer (16 KB by default, headers included). The directory shows which collections fit.