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_h
I use nginx proxy tomcat, but there have been many 400 error, about 10%.
But do not use nginx, tomcat can normally handle this part of the request.
This is my nginx configuration :
user nobody;
worker_processes 1;
error_log logs/error.log;
pid l