The method of Nginx+tomcat Nginx 504 Gateway time-out

Source: Internet
Author: User
Method of solving Nginx 504 Gateway time-out

Application is NGINX+TOMCAT7

According to this error, it is because Tomcat did not respond to nginx in time, resulting in errors.

First use fiddler to grab the page's request.

Find the 504 request. Then find out why.

Because the request time is longer, only 90 seconds.

So modify

Proxy_connect_timeout 90;

Proxy_send_timeout 90;

Proxy_read_timeout 90;

Modified into

Proxy_connect_timeout 18000; # #修改成半个小时

Proxy_send_timeout 18000;

Proxy_read_timeout 18000;



Http://www.07net01.com/zhishi/188736.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.