504 Gateway Time out Nginx 1.0.4: Upstream time out
Roger Gue
lists at ruby-forum.com
Fri Nov 4 19:38:37 UTC 2011
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/.
More information about the nginx
mailing list