February 14, 2014 04:49AM
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;
}
}
Subject Author Posted

Nginx 400 error

dinghm February 14, 2014 04:24AM

Re: Nginx 400 error

dinghm February 14, 2014 04:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready