Haproxy custom error page configuration - endless initialization


I try to implement a custom 503 error page for Haproxy. I inserted this line to the global section:
errorfile 503 http://static.website.com/haproxy/503sorry.http

When restarting now haproxy it initiatlizes forever. Is there a special format to add such settings? Could not find anything in the docs.

Any invalid config means haproxy doesn’t startup and therefore doesn’t leave initializing. errorfile takes a code and a file path, not a URL. Sounds like you want errorloc.

1 Like

Awesome that worked like charm. Did not know about errorloc.

Are you using a debian server?