location url 反向代理到来机的其它端口 gitlab

 

        location /nexus {
                proxy_pass http://127.0.0.1:8081/nexus;
        }
[root@GitMaven conf]# pwd
/var/opt/gitlab/nginx/conf
[root@GitMaven conf]# ls
gitlab-http.conf  gitlab-http.conf.tar.2016-10-221022  nginx.conf  nginx.conf.bak  nginx.conf.tar.2016-10-221022
#在这里gitlab-http.conf  设定!!!
# /opt/gitlab/embedded/sbin/nginx -s reload

 

posted @ 2016-10-22 21:54  bass  阅读(378)  评论(0编辑  收藏  举报