Nginx 400 error
dinghm
nginx-forum at nginx.us
Fri Feb 14 09:49:21 UTC 2014
upstream download {
server 127.0.0.1:8001 weight=1;
}
server {
listen 80;
server_name 210.209.116.176 *.newlife-sh.com;
access_log logs/download.log main;
location /{
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 1024k;
proxy_connect_timeout 90;
proxy_send_timeout 120;
proxy_read_timeout 300;
proxy_buffer_size 4m;
proxy_buffers 8 1024k;
proxy_busy_buffers_size 4m;
proxy_temp_file_write_size 16m;
proxy_next_upstream error timeout invalid_header http_500 http_503
http_404;
proxy_max_temp_file_size 128m;
proxy_pass http://download;
}
location /nginxstatus {
access_log on;
allow all;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247540,247541#msg-247541
More information about the nginx
mailing list