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
原文地址:https://www.cnblogs.com/bass6/p/5988451.html