nginx基本配置与参数说明:http://www.nginx.cn/76.html
nginx常用代理配置:https://www.cnblogs.com/fanzhidongyzby/p/5194895.html
nginx反向代理多个tomcat服务:http://blog.csdn.net/vio4677/article/details/43231693
详细讲解:https://www.2cto.com/os/201505/400012.html
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location /bbs/ {
charset utf-8;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8081/forum.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}