高性能WEB开发 nginx HTTP服务器篇

2019-10-17 21:25:27王振洲

proxy_pass_header User-Agent;
proxy_pass http://127.0.0.1:8081;
}

# 其他请求转发给tomcat
location / {
root html;
access_log off;
index index.jsp;
proxy_pass http://127.0.0.1:8080;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

nginx详细配置参考:http://wiki.nginx.org/
转载请注明出处:http://www.blogjava.net/BearRui/