首页 > 其他 > 详细

nginx 配置反向代理

时间:2017-05-08 14:04:21      阅读:335      评论:0      收藏:0      [点我收藏+]

1)编辑vi nginx.conf,找到http{} 在里面加入

    

    upstream ucentertomcat {

    server 192.168.100.108:8080 weight=1;

    server 192.168.100.105:8080 weight=1;

    server 192.168.100.106:8080 weight=1;

    }

    在server{}里面加入

    

    location /ucenter {

            proxy_pass   http://ucentertomcat;

            index  index.html index.htm;

    }


nginx 配置反向代理

原文:http://61455626.blog.51cto.com/1360190/1923060

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