Welcome! Log In Create A New Profile

Advanced

Re: 504 Gateway Time out Nginx 1.0.4: Upstream time out

November 07, 2011 09:10PM
proxy_connect_timeout 10m;
proxy_send_timeout 10m;
proxy_read_timeout 8m;

Is it too long?

2011/11/5 Roger Gue <lists@ruby-forum.com>

> HERE IS MY NGINX.CONF FILE DETAIL:
>
> user nginx;
> worker_processes 1;
>
> error_log /var/log/nginx/error.log;
> pid /var/run/nginx/nginx.pid;
>
> events {
> worker_connections 2048;
> # multi_accept on;
> }
>
> http {
> include /etc/nginx/mime.types;
>
> access_log /var/log/nginx/access.log;
>
> sendfile on;
> tcp_nopush on;
>
> #keepalive_timeout 0;
> keepalive_timeout 3;
> tcp_nodelay off;
> ignore_invalid_headers on;
>
> gzip on;
> gzip_disable "MSIE [1-6]\.(?!.*SV1)";
>
> gzip_comp_level 6;
> gzip_static on;
> gzip_min_length 2200;
> gzip_buffers 16 8k;
> gzip_http_version 1.1;
> gzip_types text/plain text/css application/x-javascript image/x-icon
> text/xml application/xml application/xml+rss text/javascript;
>
> include /etc/nginx/conf.d/*.conf;
> include /etc/nginx/sites-enabled/*;
> }
>
>
> AND HERE IS MY PROXY.CONF FILE DETAIL
>
> #proxy.conf
> #proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>
> client_body_buffer_size 256k;
> proxy_connect_timeout 10m;
> proxy_send_timeout 10m;
> proxy_read_timeout 8m;
> client_header_timeout 10m;
> proxy_buffers 32 4k;
> client_body_timeout 800;
> proxy_ignore_client_abort on;
>
> client_header_buffer_size 1k;
> large_client_header_buffers 8 8k;
> client_max_body_size 2g;
>
> postpone_output 1460;
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upstream time out

Roger Gue November 03, 2011 11:30AM

Re: Upstream time out

Maxim Dounin November 03, 2011 01:00PM

Re: 504 Gateway Time out Nginx 1.0.4: Upstream time out

Roger Gue November 03, 2011 01:48PM

Re: 504 Gateway Time out Nginx 1.0.4: Upstream time out

Roger Gue November 04, 2011 03:40PM

Re: 504 Gateway Time out Nginx 1.0.4: Upstream time out

xiaohanhoho November 07, 2011 09:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready