Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60199

jenkins 2.205 behind reverse proxy redirects to 127.0.0.1 after login

    • Jenkins 2.204.5, Jenkins 2.224, Winstone 5.4.3, Winstone 5.9

      After the upgrade from 2.204 to 2.205 jenkins redirects to http(s)://127.0.0.1/ after login.

       Workaround: For Apache: set "ProxyPreserveHost On" as documented in https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Apache

      *Jenkins LTS Notice*: Jenkins LTS 2.204.3 and 2.204.4 are also affected due to the Winstone upgrade which was introduced as a part of the JENKINS-57888 fix backporting. Please see https://groups.google.com/forum/#!topic/jenkinsci-dev/M_RtDuDXtbU for the discussion and retrospective

          [JENKINS-60199] jenkins 2.205 behind reverse proxy redirects to 127.0.0.1 after login

          olli hauer created issue -
          Daniel Katz made changes -
          Environment Original: Jenkins: 2.205
          Apache 2.4.41 as reverse proxy
          New: Jenkins: 2.205, 2.201.3, 2.201.4
          Apache 2.4.41 as reverse proxy
          bon ch made changes -
          Comment [ I create example repo to this issue: https://github.com/bonfy/JENKINS-61317

          Jenkinsfile in master branch Last commit : 64dd9920
          library in jenkins-lib branch Last commit: a8c235b1

          and when echo GIT_COMMIT, it is overwitten by lib's commit

          [Pipeline] echo
          13:22:18 stage 1
          [Pipeline] echo
          13:22:18 GIT COMMIT : a8c235b10c55e2f065293b1c1ad9b3bffd45d9d9
          [Pipeline] echo
          13:22:18 Hello world
          [Pipeline] } ]
          Daniel Katz made changes -
          Environment Original: Jenkins: 2.205, 2.201.3, 2.201.4
          Apache 2.4.41 as reverse proxy
          New: Jenkins: 2.205, 2.204.3, 2.204.4
          Apache 2.4.41 as reverse proxy
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Component/s New: winstone-jetty [ 20645 ]
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Oleg Nenashev made changes -
          Labels New: lts-candidate regression
          Olivier Lamy made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            oleg_nenashev Oleg Nenashev
            ohauer olli hauer
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: