Re: errorfile 403 and haproxy return 200?

2011-06-13 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 01:34:51PM +0800, Igor wrote: > Opps, I didn't mention that error file must contain http headers in it :( Yes that's mandatory because that's what's used by some people to build redirects or replace error codes with others, etc... Use the default errorfiles from the "exampl

Re: errorfile 403 and haproxy return 200?

2011-06-13 Thread Igor
Opps, I didn't mention that error file must contain http headers in it :( Bests, -Igor On Tue, Jun 14, 2011 at 1:19 PM, Willy Tarreau wrote: > On Tue, Jun 14, 2011 at 12:00:07PM +0800, Igor wrote: >> When I use errorfile 403 /etc/haproxy/403.html, the haproxy(1.4.16ss) >> will return HTTP/0.9

Re: errorfile 403 and haproxy return 200?

2011-06-13 Thread Willy Tarreau
On Tue, Jun 14, 2011 at 12:00:07PM +0800, Igor wrote: > When I use errorfile 403 /etc/haproxy/403.html, the haproxy(1.4.16ss) > will return HTTP/0.9 200 OK to the client not HTTP/1.0 403 Forbidden. > > Is this a bug? It works perfectly here. Are you sure your 403 file is correct ? Maybe you copie

errorfile 403 and haproxy return 200?

2011-06-13 Thread Igor
When I use errorfile 403 /etc/haproxy/403.html, the haproxy(1.4.16ss) will return HTTP/0.9 200 OK to the client not HTTP/1.0 403 Forbidden. Is this a bug? Bests, -Igor