For Techs.... Techniques.... Technologies....


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_redirect http:// https://;

Then restart the Nginx service.

#systemctl restart nginx

That's all…