Re: Using nginx / haproxy / apache setupr?

From: Aleksandar Lazic <>
Date: Sat, 21 Nov 2009 00:38:56 +0100


On Fre 20.11.2009 22:26, Ryan Chan wrote:
>We currently have single server, using nginx as reverse proxy in front
>of apache for speeding up static content.
>Users ==> nginx (Static files) ===> apache (optional, dynamic PHP)
>As the site scale out, we add 2 server for PHP, and the original web
>server is used to serve static contents, e.g.
>User ==> nginx (static)
>User ==> haproxy ==> nginx ==> apache
> \===> nginx ==> apache
>Is the above setup ok?

Looks ok.

>The reason I still using nginx as reverse proxy is to deal with slow
>http client problem, e.g.
>Any suggestions?

You should setup haproxy so that the 'slow clients' don't eat all connections to apache.

Maybe some of the below options can help you

option clitcpka
option forceclose
option httpclose
tcp-request inspect-delay
timeout client
timeout http-request

5. Server options


Aleks Received on 2009/11/21 00:38

This archive was generated by hypermail 2.2.0 : 2009/11/21 00:45 CET