Welcome! Log In Create A New Profile

Advanced

Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

October 15, 2015 05:42PM
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 I am missing?
server {
listen 80;
listen [::]:80 default ipv6only=on;

location /jenkins/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://172.17.144.123:8080/;
}
}


I installed the NGINX that came with GITLAB.

Is module ngx_http_proxy_module something that is an add-on? That I install separately?

Thanks in advance,

-Ed
Subject Author Posted

Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 15, 2015 05:42PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

Nurahmadie Nurahmadie October 15, 2015 05:56PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 15, 2015 05:59PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 09:46AM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 09:48AM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 11:00AM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

Nurahmadie Nurahmadie October 16, 2015 11:14AM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 11:56AM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 12:19PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

Nurahmadie Nurahmadie October 16, 2015 12:26PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

Nurahmadie Nurahmadie October 16, 2015 12:28PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

Francisco V. October 16, 2015 01:34PM

Re: Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain October 16, 2015 03:39PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready