RadarURL
Skip to content
2014.04.08 08:14

nginx 504 gateway time-out

조회 수 1555 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

I am running Django, FastCGI, and Nginx. I am creating an api of sorts that where someone can send some data via XML which I will process and then return some status codes for each node that was sent over.

The problem is that Nginx will throw a 504 Gateway Time-out if I take too long to process the XML -- I think longer than 60 seconds.

So I would like to set up Nginx so that if any requests matching the location /api will not time out for 120 seconds. What setting will accomplish that.

What I have so far is:

    # Handles all api calls
    location ^~ /api/ {
        proxy_read_timeout 120;
        proxy_connect_timeout 120;
        fastcgi_pass 127.0.0.1:8080;
    }

Edit: What I have is not working :)

 

출처 : http://stackoverflow.com/questions/561946/how-do-i-prevent-a-gateway-timeout-with-fastcgi-on-nginx

?

List of Articles
번호 제목 글쓴이 날짜 조회 수
10 504 Gateway Time-out using Nginx JaeSoo 2014.04.09 1745
9 Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등) JaeSoo 2014.04.09 2234
8 Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream JaeSoo 2014.04.08 1511
» nginx 504 gateway time-out JaeSoo 2014.04.08 1555
6 Nginx SERverSETting JaeSoo 2014.04.07 1624
5 Nginx에서 php 외에 추가로 여러 확장자를 처리 방법 JAESOO 2013.06.10 2917
4 Nginx 설치 (간략) JAESOO 2013.06.10 1709
3 Apache vs Nginx 성능을 밝혀라! JAESOO 2013.05.28 3653
2 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가? JAESOO 2013.05.28 2815
1 강력한 웹서버 NGINX JaeSoo 2012.11.20 5086
Board Pagination Prev 1 Next
/ 1

PageViews   Today : 9635 Yesterday : 5037 Total : 21965687  /  Counter Status   Today : 9297 Yesterday : 4602 Total : 1192020

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소