I have no idea why after Jenkins is updated to version 1.591 (Ubuntu Server 12.04), the originally correctly set up reverse proxy now becomes broken. My current setting is e
For nginx, this also helped me:
proxy_redirect http://localhost:8080 https://your.ssl.domain.name
Don't include any trailing slashes to the above urls, and also not to the proxy_pass
url.
Also have a look in case you set a Referrer-Policy header which removes the "referer" header. That one is used by the self test XHR script at /administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/
.
For me, the fix was to add:
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
This made it stop complaining.
It's trying to verify the url specified in the setting with the actual one:
Here's a link clearly states somethings are changed after 1.552 so adding these new lines;
nocanon and AllowEncodedSlashes
Solved my issue and warning gone.
I was faced with this issue with Jenkins as a Windows Service Package.
According to their wiki:
Make sure the Jenkins URL configured in the System Configuration matches the URL you're using to access Jenkins.
To reach the System Configuration:
Ensure that port value matches with the port value set in the <arguments>
section of the jenkins.xml file located in the Jenkins folder on your machine.