Nginx返回110 :(连接超时)连接到上游

时间:2014-10-13 15:32:04

标签: java linux session tomcat nginx

我试图通过添加

来调整nginx.conf
proxy_connect_timeout       600;
        proxy_send_timeout          600;
        proxy_read_timeout          600;
        send_timeout                600;

到所有地点/

还补充道:

 keepalive_timeout   10;
     proxy_buffering off;

和ssl:

# SSL
ssl                     on;
ssl_prefer_server_ciphers on;
ssl_protocols           TLSv1 SSLv3;
ssl_ciphers             RC4:HIGH:!MD5:!ADH:+DH; #HIGH:!ADH:!MD5:@STRENGTH;
ssl_session_cache       builtin:10000 shared:SSL:20m;
ssl_session_timeout     10m;

我仍然得到:

2014/10/13 18:22:17 [error] 9361#0: *637300 connect() failed (110: Connection timed out) while connecting to upstream, client: 30.30.119.123, server: , request: "POST /myserver/... HTTP/1.1", upstream: "http://127.0.0.1:9090/myserver/..., host: "43.5.2.3"

我也有nginx apache之后的tomcat。

configuration on port 9090:

<Connector port="9090"
                           protocol="org.apache.coyote.http11.Http11NioProtocol"
               connectionTimeout="20000"
               redirectPort="8443"
                           asyncTimeout="10000000"
                           maxPostSize="0"/>
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
                maxThreads="900"
                acceptAccount="250"
                />
    -->

还有什么我应该尝试的吗? 感谢。

0 个答案:

没有答案