server {
listen 8866;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://tomcatS3;
proxy_set_header Host $host:$server_port;
#root html;
#index index.html index.htm;
}
}
proxy_set_header Host h o s t : host: host:server_port; ///这个一定要加,不然会找不到端口