Why does Jenkins complain that my reverse proxy setup is broken?

前端 未结 8 840
再見小時候
再見小時候 2020-12-08 10:15

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

相关标签:
8条回答
  • 2020-12-08 10:38

    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.

    0 讨论(0)
  • 2020-12-08 10:47

    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/.

    0 讨论(0)
  • 2020-12-08 10:49

    For me, the fix was to add:

    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"
    

    This made it stop complaining.

    0 讨论(0)
  • 2020-12-08 10:49

    It's trying to verify the url specified in the setting with the actual one:

    1. go to manage jenkins
    2. configure system
    3. jenkins URL
    4. change the url to your public IP address
    5. save
    0 讨论(0)
  • 2020-12-08 10:55

    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.

    0 讨论(0)
  • 2020-12-08 10:57

    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:

    1. Go to your Jenkins page
    2. Click Manage Jenkins
    3. Click Configure System
    4. Scroll to Jenkins Location and find Jenkins URL.

    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.

    0 讨论(0)
提交回复
热议问题