首页 > 其他 > 详细

nginx安装、监控、设置反向代理

时间:2017-11-13 16:16:04      阅读:298      评论:0      收藏:0      [点我收藏+]

#监控
location /status {
stub_status on;
access_log off;
}

#代理
location / {
proxy_pass http://10.1.2.170:8081/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

#linux 重新编译
./configure --with-http_stub_status_module
make
make install

nginx安装、监控、设置反向代理

原文:http://www.cnblogs.com/stweixiao/p/7826459.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!