Uploaded image for project: 'Jenkins Website'
  1. Jenkins Website
  2. WEBSITE-773

Reverse proxy section fixes

    XMLWordPrintable

    Details

    • Epic Link:
    • Similar Issues:

      Description

      Greetings, (TL;DR on last paragraph)

      We wanted to add HTTPS using a reverse proxy and we choose Nginx.

      We followed the procedures from this page but we had some issues: https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-nginx/

      We ran in a slow loading issue when connecting to the reverse proxy. By analyzing, it was due to the simple-theme plugin inserting a "<script>" snippet at the head of the main Webpage.

      Although it would preferably use a relative path, the plugin use the "Host" HTTP header to fill the URL path for the simple-plugin.js script. The thing is that the documentation is proxying using the "$host" variable, which does not include the requested port.

      So in summary, could you change the "proxy_set_header Host $host;" to "proxy_set_header Host $http_host;" in the documentation (https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-nginx/) so the port, if set, is included in the proxy header?

      Thanks!

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dboisvert_cmi Danny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: