Hi,
Before 1.5 release of HAProxy, I used Nginx for SSL and serve static files.
But now, I use only Nginx to serve static files, because I've better
performances with HAProxy for SSL.
I know that HAProxy is only to proxy queries, but I've tried to server a
static file with HAProxy with monitor-uri and errorfile in my config file:
listen http-webservices
bind :8080
monitor-uri /c
errorfile 200 /etc/haproxy/errorfiles/200.http
It works pretty well, better performances than Nginx with cache enabled
(based on my benchmarks with Weighttp).
But, it isn't really useable, I can only serve one static file by
frontend/listen.
With 1.5 release, HAProxy is now capable to replace a Web server in most
cases, I've connected HAProxy directly with my Python daemons.
Any plans to support static files ?
I know that HAProxy wasn't designed for that, but I've the feeling that
HAProxy could do that better than others Web servers.
Regards.
--
Ludovic Gasc