PDA

View Full Version : nginx client timed out (110: Connection timed out)



BestBoard
04-08-2011, 12:17 PM
Hi,
i'm using nginx as proxy (for apache).
apache is running under port 80 (and handle php files), nginx running under port 81 (and handle everything else - js,css,etc..).
i installed rpaf_module for apache and configure it to pass the information to nginx.

it worked like a charm, but suddenly i get a lot of "client timed out" errors.
for example:

2011/04/08 21:47:45 [info] 2116#0: *32 client timed out (110: Connection timed out) while reading client request line, client: x.x.x.x, server: 0.0.0.0:81
2011/04/08 21:47:45 [info] 2117#0: *109 client timed out (110: Connection timed out) while reading client request line, client: x.x.x.x, server: 0.0.0.0:81

what can be the reason for these errors?

zEitEr
04-08-2011, 12:39 PM
Hello,

What about nginx timeouts?

I would suppose, that connections to your :81 could not be established, because it's blocked on clients' side. What if you set nginx to listen on *:80 (you can make apache to be binded to 127.0.0.1)?

BestBoard
04-08-2011, 01:13 PM
it's not a clients problem, i use iptables rule to forward request on port 80 to 81.