Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14084

Reverse Proxy config generator, leave port out of X-Artifactory-Override-Base-Url when using default ports

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: 3 - High
    • Resolution: Unresolved
    • Affects Version/s: 4.16.0, 6.11.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      We have our server setup for https on the default port 443. I have configured the reverse proxy and disabled http traffic. When generating Maven and Ivy settings files, they include the port number. I don't want the port number listed, that's why I'm using the default port! The server's canonical base URL in the general settings doesn't include the port, and other repository types I'm using (such as NPM and Docker) don't include the port in the Set Me Up feature.

      Support ticket 58562 revealed the source of the issue as being

      Artifactory’s reverse proxy config generator does not remove the port from the URL even though 443 is the default port. So, in your reverse proxy config, the X-Artifactory-Override-Base-Url header shown here –

      proxy_set_header    X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host:$server_port/artifactory;

      needs to be modified by removing ":$server_port" to show that you are using the default SSL port –

      proxy_set_header    X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host/artifactory;

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jgeorgeson Justin Georgeson
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-14084 -
                SYNCHRONIZED
                • Last Sync Date: