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

nginx ip配置反向代理为本地域名

时间:2019-12-10 17:15:00      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:html   http   class   代理   nginx   color   oca   git   nbsp   

#### gitlab反向代理
server {
        listen       80;
        server_name  gitlab.hp.com;

        location / {
            proxy_pass http://192.168.5.119:8880;
            index  index.html index.htm index.jsp;
        }
    }

 

nginx ip配置反向代理为本地域名

标签:html   http   class   代理   nginx   color   oca   git   nbsp   

原文地址:https://www.cnblogs.com/niuben/p/12017501.html

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