[MEDIUM] errorfile: use a local file to feed error messages
It is now possible to read error messages from local files,
using the 'errorfile' keyword. Those files are read during
parsing, so there's no I/O involved. They make it possible
to return custom error messages with custom status and headers.
diff --git a/examples/haproxy.cfg b/examples/haproxy.cfg
index 1add7ff..1c71d61 100644
--- a/examples/haproxy.cfg
+++ b/examples/haproxy.cfg
@@ -76,4 +76,5 @@
rspidel ^Set-cookie:\ IP= # do not let this cookie tell our internal IP address
errorloc 502 http://192.168.114.58/error502.html
+ errorfile 503 /etc/haproxy/errors/503.http