[Nginx] 504 Gateway 해결 타임 아웃

2027 단어 서버
글 목록
  • Nginx + FastCGI (php-fpm)
  • Nginx Proxy Timeout

  • 흔히 볼 수 있 는 대응 오류 정보
    “504 Gateway Timeout”
    “504 Gateway Time-Out”
    “504 Gateway Timeout NGINX”
    “Nginx 504 Gateway Timeout”
    “HTTP 504 Gateway Timeout”
    “HTTP 504 Error”
    “HTTP 504”
    “Gateway Timeout (504)

    Nginx + FastCGI (php-fpm)
      php     ,          
       :
      php.ini   
    #   30s
    max_execution_time = 300 
    
       :
    /etc/php-fpm.d/www.conf
    #    60s
    request_terminate_timeout = 600
    
    
      Nginx     
       fastcgi_read_timeout   
    location ~ .php$ {
    	root /var/www/sites/nginxtips.com;
    	try_files $uri =404;
    	fastcgi_pass unix:/tmp/php5-fpm.sock;
    	fastcgi_index index.php;
    	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    	include fastcgi_params;
    	fastcgi_read_timeout 300;
    }
    
    #    nignx     
    systemctl reload nginx
    

    Nginx Proxy Timeout
      nginx.conf
    
    proxy_connect_timeout       600;
    proxy_send_timeout          600;
    proxy_read_timeout          600;
    send_timeout                600;
    
    #    nignx     
    systemctl reload nginx
    

    좋은 웹페이지 즐겨찾기