Hi, On Tue, Jul 13, 2010 at 06:15:19PM +0200, ??ukasz Jagie????o wrote: > 2010/7/13 eni-urgence <[email protected]>: > > Hello everybody. > > > > 1) I want to use the errorfile directive in the configuration in order to > > display a custom html page (on proxy disk). Is it possible to include an > > image file in those pages ? And if not, if I use html page stored on a > > webserver, can I include image and css ? > > For image/css and so on, use errorloc and run small webserver like > nginx. Working in my case really cool. > Got configuration like this: > > backend error > option httpchk HEAD /check.txt HTTP/1.0 > server error 127.0.0.1:8000 check inter 3000 fall 2 rise 2 > > frontend some_domain.pl x.y.z.t:80 > errorloc 400 http://error.some_domain.pl/400.html > errorloc 403 http://error.some_domain.pl/403.html > errorloc 408 http://error.some_domain.pl/408.html > errorloc 500 http://error.some_domain.pl/500.html > errorloc 502 http://error.some_domain.pl/502.html > errorloc 503 http://error.some_domain.pl/503.html > errorloc 504 http://error.some_domain.pl/504.html > [...] > > Nginx listen any domain and display correct error page, or define > different error page for each domain.
I can only second this. Nginx and Haproxy have very similar I/O models and can both share the same machine with very low RAM/CPU usage for both. Nginx is the good swiss-army knife when you need to mangle URLs, rewrite things in tricky ways, as well as haproxy is the good swiss army knife when you want to perform tricky stickiness or transparent modes. While there's some overlap between the two, both do complete very well at many workplaces to offer a very wide set of features. Regards, Willy

