I’ve upgraded my jenkins to the last version 2.303.3 and after login it redirects me to the localhost:8443/jenkins, until now I didn’t have any problem with this redirect 8443 because I’m using nginx as reverse proxy and no problem until upgraded.
Do you know if there is a problem with this version, being the latest version maybe some security spring bug exists?
My problem is that behind my proxy server nginx I have other application that is been accessible via 8080 and that’s why I have jenkins port on 8443. Is there a way to make this to work from 8443 → 80 ?
upstream jenkins_backend {
server 192.168.100.5:8443;
}
upstream other_app {
server 192.168.100.23:8080;
}
}
}
listen 443 ssl;
server_name tool.domain.com;
I’m not an nginx expert or even a skilled administrator of nginx. I know that my nginx configuration works and that I’m able to server multiple applications from that nginx server. I would expect Jenkins does not care which port it is assigned, so long as the argument is passed to Jenkins to tell it to use that port.
I don’t recognize the upstream keyword in your configuration. I know that the location keyword works in my installation so that I can have several applications all accessed through the same nginx reverse proxy (as in https://my.example.com/jenkins and https://my.example.com/app and https://my.example.com/app2)
As far as I understand it, that example configuration in the documentation is using nginx as a reverse proxy for the single application, Jenkins. It is describing how to define an nginx reverse proxy for https://jenkins.example.com/ with no other applications running on that URL. I thought your description was that you want to serve multiple applications from the same root URL, more like https://my.example.com/jenkins.
I’m not able to diagnose nginx configurations. I understood nginx just enough to make it work for my installation. Others will need to assist if more diagnosis of your installation is needed.
Please take a look here in the printscreen , I’ve followed the link url redirection and seems the “j_spring_security_check” is causing the redirection.