码迷,mamicode.com
首页 > 其他好文 > 详细

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

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

标签:lin   location   ati   access   install   --   cat   with   linu   

#监控
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安装、监控、设置反向代理

标签:lin   location   ati   access   install   --   cat   with   linu   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!