The chef utility that gitlab uses is useful. I added my location proxy_pass to the following template, and when I run gitlab-ctl reconfigure it now includes it. /opt/gitlab/embedded/cookbooks/gitlab/recipes/nginx-gitlab-http.conf.erb All is good! Problem solved. Thank you Nurahmadie !by edofthemountain - Nginx Mailing List - English
Thank you for your help Nurahmadi. I will look for gitlab forum solutions. If I move the following location section inside the gitlab-http.conf file both GitLab and Jenkins proxy_pass will works Assuming that modifying the omnibus version of gitlab-http.conf is the only way to make it work, then my problem has changed to how do I maintain gitlab-http.conf? My problem is that all modifiby edofthemountain - Nginx Mailing List - English
Thank you for your reply. I am not sure I understand. I do know Jenkins proxy_pass will work if I do the following: 1 - gitlab-ctl stop 2 - Comment-out the "#include gitlab-http.conf" in the nginx.conf file 3 - gitlab-ctl start 4 - http://localhost/jenkins takes me to http://localhost:8081/jenkins I assume this means something in gitlab-http.conf is intercpting the http:/by edofthemountain - Nginx Mailing List - English
Is there a NGINX configuration command to exclude listening for /jenkins/ in the gitlab-http.conf ? Something in the gitlab-http.conf is preventing my proxy_pass from working in nginx-jenkins.conf ?by edofthemountain - Nginx Mailing List - English
Sorry typo in posting... Shouldn't the following result in http://127.0.0.1/test1 passing to http://google.com ? It does not. It redirects back to 127.0.0.1 server { listen *:80; location /test1/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://google.com; } }by edofthemountain - Nginx Mailing List - English
I am trying to simplify my proxy_pass problem and eliminate port issues. Shouldn't the following result in http://127.0.0.1/test1 passing to http://google.com ? It redirects back to 127.0.0.1 server { listen *:80; location /test1127.0.0.1/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://googleby edofthemountain - Nginx Mailing List - English
Thank you Nurahmadie. Removal of trailing slash did not help sadly.by edofthemountain - Nginx Mailing List - English
How can I configure NGINX to pass http://172.17.144.123/jenkins to this http://172.17.144.123:8080/jenkins I have Gitlab + NGINX and Jenkins running on the same CentOS 6.7 machine. I access Jenkins with the following URL: http://172.17.144.123:8080/jenkins/ GitLab opens using this URL: http://172.17.144.123 I tried the following without success. # This does NOT work. What Iby edofthemountain - Nginx Mailing List - English