Jenkins urls not working with Nginx over https
Here the Jenkins is configured with Nginx as reverse proxy and works normally over http. The things started breaking after configuring the ssl in Nginx. Some of the Jenkins urls not working properly over https. Please note that the Jenkins is deployed under the sub-folder "jenkins" using Tomcat which uses the port 8080.
In-order to resolve this issue, we need to tweak the Nginx virtual configuration as follows.
location ^~ /jenkins/ {
proxy_pass http://127.0.0.1:8080/jenkins/;
proxy_redirect http:// https://;
}
Then restart the Nginx service.
#systemctl restart nginx
That's all…