RadarURL
Skip to content
2014.04.08 08:14

nginx 504 gateway time-out

조회 수 2318 추천 수 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

?

  1. XpressEngine XE 1.5 캐시 사용으로 성능 극대화

    Date2012.05.09 ByJaeSoo Views4295
    Read More
  2. 제로보드XE(Xpressengine) Anti-accessXE:기본설정

    Date2012.07.26 ByJaeSoo Views4135
    Read More
  3. Nginx 웹서버 성능분석

    Date2012.11.20 ByJaeSoo Views5896
    Read More
  4. 강력한 웹서버 NGINX

    Date2012.11.20 ByJaeSoo Views5761
    Read More
  5. NGINX 소개와 사용 현황

    Date2012.11.20 ByJaeSoo Views5001
    Read More
  6. Xpress engine nginx rewrite 설정, 짧은주소 (xpressengine)

    Date2012.11.20 ByJaeSoo Views68885
    Read More
  7. Nginx 와 Apache 동시사용 설정 (영문)

    Date2013.04.08 ByJaeSoo Views9073
    Read More
  8. Nginx HttpRewriteModule

    Date2013.04.08 ByJaeSoo Views3027
    Read More
  9. nginx 에서 htaccess 사용하기

    Date2013.04.08 ByJaeSoo Views3075
    Read More
  10. NGINX서버를 통한 다운로드 링크 형성하기(POGOPLUG SERIES 4용)

    Date2013.04.08 ByJaeSoo Views5487
    Read More
  11. nginx 재시작 배치파일

    Date2013.04.12 ByJaeSoo Views3390
    Read More
  12. 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가?

    Date2013.05.28 ByJAESOO Views3373
    Read More
  13. Apache vs Nginx 성능을 밝혀라!

    Date2013.05.28 ByJAESOO Views4282
    Read More
  14. Nginx 설치 (간략)

    Date2013.06.10 ByJAESOO Views2326
    Read More
  15. Nginx에서 php 외에 추가로 여러 확장자를 처리 방법

    Date2013.06.10 ByJAESOO Views3835
    Read More
  16. Nginx SERverSETting

    Date2014.04.07 ByJaeSoo Views2313
    Read More
  17. nginx 504 gateway time-out

    Date2014.04.08 ByJaeSoo Views2318
    Read More
  18. Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream

    Date2014.04.08 ByJaeSoo Views2638
    Read More
  19. Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등)

    Date2014.04.09 ByJaeSoo Views3518
    Read More
  20. 504 Gateway Time-out using Nginx

    Date2014.04.09 ByJaeSoo Views3038
    Read More
Board Pagination Prev 1 2 Next
/ 2

PageViews   Today : 4756 Yesterday : 6662 Total : 23452941  /  Counter Status   Today : 2405 Yesterday : 2621 Total : 1615440

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소