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

Using Apache proxysettings breaks several GUI functions

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None

      We are using an HTTP Proxy with the following config:

      <VirtualHost I.AM.AN.IPADDRESS:443>
      ServerName randomname.my-company.com
      ServerAdmin it@my-company.com

      DocumentRoot /srv/www/dummy

      RewriteEngine On
      RewriteLogLevel 0

      RewriteCond %

      {REQUEST_URI}

      !^/manager
      RewriteRule ^/?$ https://%

      {HTTP_HOST}

      /jenkins/ [R,L]

      ErrorLog /var/log/apache2/randomname_error.log
      CustomLog /var/log/apache2/randomname_access.log combined
      RewriteLog /var/log/apache2/randomname_rewrite.log

      <Location /jenkins>
      Order allow,deny
      Allow from all
      </Location>

      <Location /manager>
      Order allow,deny
      Allow from all
      </Location>

      SSLEngine on
      SSLProtocol -ALL +SSLv3 +TLSv1
      SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
      SSLCertificateFile /etc/apache2/ssl.crt/wildcard.my-company.com.crt
      SSLCertificateKeyFile /etc/apache2/ssl.key/wildcard.my-company.com.key
      SSLCertificateChainFile /etc/apache2/ssl.crt/wildcard.my-company.com.ca

      ProxyRequests On
      ProxyPreserveHost On
      ProxyPass /jenkins http://127.0.0.1:8080/jenkins
      ProxyPassReverse /jenkins http://127.0.0.1:8080/jenkins

      ProxyPass /manager http://127.0.0.1:8080/manager
      ProxyPassReverse /manager http://127.0.0.1:8080/manager

      </VirtualHost>

      We updated the Jenkins to 1.501 and restarted the tomcat. We can log in, but several functions are not available.

      We can access the "Manage Jenkins" Interface, but by clicking on "Manage Plugins" or "SystemInformation" we are placed on the landing page again. Nevertheless we can access "Configure System".

      To test this, we setup the same system on a new server. Versions as declared above.
      Accessing the jenkins via tomcat (http://testserver:8080/jenkins/login?from=%2Fjenkins%2F) works fine.

      Accessing it via randomname.my-company.com - over the apache proxy - breaks it, as parts of the GUI are not working.

          [JENKINS-16802] Using Apache proxysettings breaks several GUI functions

          Jesse Glick added a comment -

          Did you set the externally visible Jenkins URL in the /configure screen?

          Jesse Glick added a comment - Did you set the externally visible Jenkins URL in the /configure screen?

          Yes, we have set the externally visible Jenkins URL in "Jenkins URL" in the config screen. It's set to "randomname.my-company.com" and works on 1.452.

          Technical Operations added a comment - Yes, we have set the externally visible Jenkins URL in "Jenkins URL" in the config screen. It's set to "randomname.my-company.com" and works on 1.452.

          Jesse Glick added a comment -

          JENKINS-16368 supposedly fixed in 1.501 but I do not entirely trust the changelog to get this right.

          Jesse Glick added a comment - JENKINS-16368 supposedly fixed in 1.501 but I do not entirely trust the changelog to get this right.

          As stated in the ticket above, we tried that and it broke down. Nevertheless we are going to give 1.504 a chance soon and report back in here wether the problem was fixed or not.

          Technical Operations added a comment - As stated in the ticket above, we tried that and it broke down. Nevertheless we are going to give 1.504 a chance soon and report back in here wether the problem was fixed or not.

          evernat added a comment -

          Is it fixed or perhaps reproduced with a recent Jenkins version?

          evernat added a comment - Is it fixed or perhaps reproduced with a recent Jenkins version?

          Daniel Beck added a comment -

          No response to comment asking for updated information in six months, so resolving as Cannot Reproduce.

          If this occurs on recent Jenkins versions, and you followed the instructions how to set up the reverse proxy in the Jenkins wiki, please just file a new issue. Thanks!

          Daniel Beck added a comment - No response to comment asking for updated information in six months, so resolving as Cannot Reproduce. If this occurs on recent Jenkins versions, and you followed the instructions how to set up the reverse proxy in the Jenkins wiki, please just file a new issue. Thanks!

            Unassigned Unassigned
            techops Technical Operations
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: