RadarURL

웹서버,WAS
2014.04.08 08:14

nginx 504 gateway time-out

조회 수 2634 추천 수 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. [공지] 공부 게시판 입니다.

    Date2003.08.18 By처누 Views952955
    read more
  2. 일반적인 Htaccess 301 리디렉션 규칙

    Date2026.04.01 Category웹서버,WAS ByYooN Views78
    Read More
  3. [Windows] OWASP ZAP 사용법

    Date2025.09.29 Category웹서버,WAS ByYooN Views844
    Read More
  4. [웹 취약점] 웹서버 디렉토리 리스팅 방지

    Date2025.09.29 Category웹서버,WAS ByYooN Views710
    Read More
  5. [apache] HTTP/HTTPS 리다이렉트(Redirect/Rewrite) 하는 방법

    Date2025.09.11 Category웹서버,WAS ByYooN Views869
    Read More
  6. http를 https로 리다이렉트하는 여러가지 방법

    Date2025.09.10 Category웹서버,WAS ByYooN Views708
    Read More
  7. SSL인증서 없이 HTTPS에서 HTTP로 되돌리기

    Date2025.09.10 Category웹서버,WAS ByYooN Views928
    Read More
  8. [SSL] win-acme, Let's encrypt로 무료 SSL 인증서 발급

    Date2025.09.10 Category웹서버,WAS ByYooN Views1130
    Read More
  9. [SSL] Windows 10에서 Let's Encrypt로 SSL 인증서 무료 발급받기

    Date2025.09.10 Category웹서버,WAS ByYooN Views794
    Read More
  10. 무료로 https SSL/TLS 인증서를 발급받을 수 있는 인증 기관

    Date2025.09.10 Category웹서버,WAS ByYooN Views837
    Read More
  11. 아파치 서버에 https SSL 인증서 적용하는 방법 (apache httpd)

    Date2025.09.10 Category웹서버,WAS ByYooN Views623
    Read More
  12. 아파치2(Apache2) SSL HTTPS 적용하기

    Date2025.09.10 Category웹서버,WAS ByYooN Views946
    Read More
  13. 아파치 웹서버에 멀티 도메인에 대한 80, 443 포트 설정하는 방법

    Date2025.09.10 Category웹서버,WAS ByYooN Views850
    Read More
  14. 용량 산정 (동시 접속자 계산)

    Date2016.05.05 Category웹서버,WAS ByYooN Views1651
    Read More
  15. 아파치 httpd.conf 재시작 없이 설정 적용하기

    Date2016.05.02 Category웹서버,WAS ByYooN Views1453
    Read More
  16. Tomcat JVM heap memory set 및 size

    Date2016.03.23 Category웹서버,WAS ByYooN Views1332
    Read More
  17. Java 실행 옵션 정리

    Date2016.03.23 Category웹서버,WAS ByYooN Views1398
    Read More
  18. [JAVA] 개발환경설정 - 표준프레임워크

    Date2016.01.02 Category웹서버,WAS ByYooN Views1658
    Read More
  19. Tomcat 7.x 와 8.x 간의 default configuration 차이

    Date2016.01.02 Category웹서버,WAS ByYooN Views1471
    Read More
  20. 톰캣 8 소개

    Date2016.01.01 Category웹서버,WAS ByYooN Views1124
    Read More
  21. 리눅스 webalizer를 통한 apache log(웹서버 접속 통계) 분석하기 (추천)

    Date2014.12.25 Category웹서버,WAS ByYooN Views2017
    Read More
Board Pagination Prev 1 2 3 Next
/ 3


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너