<div dir="ltr">Hi ed,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 16, 2015 at 4:42 AM, edofthemountain <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">How can I configure NGINX to pass<br>
<br>
<a href="http://172.17.144.123/jenkins" rel="noreferrer" target="_blank">http://172.17.144.123/jenkins</a><br>
to this<br>
<a href="http://172.17.144.123:8080/jenkins" rel="noreferrer" target="_blank">http://172.17.144.123:8080/jenkins</a><br>
<br>
I have Gitlab + NGINX and Jenkins running on the same CentOS 6.7 machine.<br>
<br>
I access Jenkins with the following URL:<br>
<a href="http://172.17.144.123:8080/jenkins/" rel="noreferrer" target="_blank">http://172.17.144.123:8080/jenkins/</a><br>
<br>
GitLab opens using this URL:<br>
<a href="http://172.17.144.123" rel="noreferrer" target="_blank">http://172.17.144.123</a><br>
<br>
I tried the following without success.<br>
<br>
# This does NOT work.  What I am missing?<br>
server {<br>
   listen 80;<br>
   listen [::]:80 default ipv6only=on;<br>
<br>
   location /jenkins/ {<br>
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
      proxy_set_header Host $http_host;<br>
      proxy_pass <a href="http://172.17.144.123:8080/" rel="noreferrer" target="_blank">http://172.17.144.123:8080/</a>;<br></blockquote><div>         # You want to remove the slash here   ^</div><div>         # <a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass">http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass</a> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
   }<br>
}<br>
<br>
<br>
I installed the NGINX that came with GITLAB.<br>
<br>
Is module ngx_http_proxy_module something that is an add-on?  That I install<br>
separately?<br>
<br>
Thanks in advance,<br>
<br>
-Ed<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,262255,262255#msg-262255" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,262255,262255#msg-262255</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">regards,<br>Nurahmadie<br>--<br></div>
</div></div>