Thanks for help on this. I've fixed it by moving jenkins application to
/jenkins path on the application server. Now it's much simpler and it
appears it's working without hiccups
location /jenkins {
proxy_pass http://jenkins:8080;
proxy_redirect http://jenkins:8080/ http://nginx/;
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:
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://jenk
It was just an example, app1 or app2 may be any app, eg. zabbix or another
web server.
I have left the basic config for troubleshooting, my proxy pass is just as
per below:
location /jenkins {
proxy_pass http://jenkins:8080;
}
The very first GET is:
---
curl http://localhost:8123/jenki
On Sun, Feb 25, 2018 at 03:08:28AM -0500, kefi...@gmail.com wrote:
Hi there,
> I am trying to setup a reverse proxy on a single domain to host multiple
> apps separated by URI, for example:
> http://localhost/app1
> http://localhost/app2
> etc.
You will be much happier if your nginx/app1/ applic
Hi,
compare the output of
curl -ivvv http://jenkins:8080
curl -ivvv http://localhost/jenkins
then
curl -iLvvv http://jenkins:8080
curl -iLvvv http://localhost/jenkins
pay attention on the cookie headers.
java based applications usually may set session cookies and you should
handle th
Hello,
I am trying to setup a reverse proxy on a single domain to host multiple
apps separated by URI, for example:
http://localhost/app1
http://localhost/app2
etc.
Right know having problems with reverse proxy jenkins which sends HTML page
in HTTP reply with relative paths eg. /static/abc/css/co