Hello All, I was trying to configure custom error pages on haproxy but after waisting a lot of time I'm not successful. I wanted to serve it all the time as my backends give it to the clients. I put the following directive in my config file: errorfile 500 /etc/haproxy/errorfiles/err.http in defults and "listen" section and all the time it fails. The file exist and it looks like this:
<html> <head> <title>500</title> </head> <body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfigurationand was unable to complete your request.</p> <p>Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body> </html> I'm little fed up of it, probably I'm doing sth wrong. Need some tips! Thanks -- Regards. Mikołaj

