Welcome! Log In Create A New Profile

Advanced

Re: Jenkins reverse proxy on single domain with multiple apps

Aziz Rozyev
February 26, 2018 11:04AM
well, as I’ve said try checking headers first, as per the following doc:
https://wiki.jenkins.io/display/JENKINS/Jenkins+behind+an+NGinX+reverse+proxy

it can be much complicated than just proxy_pass’ing.

regarding sub_fillter,

try getting rid of one of the sub_filters, probably the second one:

proxy_pass http://jenkins:8080/;
sub_filter 'url=/login?from=%2F' 'url=/jenkins/login?from=%2F';
# sub_filter "('/login?from=%2F')" "('/jenkins/login?from=%2F')";
sub_filter_once off;

br,
Aziz.





> On 26 Feb 2018, at 18:03, kefiras@gmail.com <nginx-forum@forum.nginx.org> wrote:
>
> The setup is a simple set of docker containers.
>
> a 'localhost' is a docker container with nginx acting as a reverse proxy
>
> it has defined /jenkins location to reverse proxy connection to jenkins
> container which exposes the java app at port 8080 so:
>
> location /jenkins {
> proxy_pass http://jenkins:8080;
> }
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278748,278771#msg-278771
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Jenkins reverse proxy on single domain with multiple apps

kefiras@gmail.com February 25, 2018 03:08AM

Re: Jenkins reverse proxy on single domain with multiple apps

Aziz Rozyev February 25, 2018 08:14AM

Re: Jenkins reverse proxy on single domain with multiple apps

kefiras@gmail.com February 26, 2018 09:58AM

Re: Jenkins reverse proxy on single domain with multiple apps

Francis Daly February 25, 2018 10:36AM

Re: Jenkins reverse proxy on single domain with multiple apps

kefiras@gmail.com February 26, 2018 10:03AM

Re: Jenkins reverse proxy on single domain with multiple apps

Aziz Rozyev February 26, 2018 11:04AM

Re: Jenkins reverse proxy on single domain with multiple apps

kefiras@gmail.com February 26, 2018 11:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
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