Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-11603

Update documentation for nexus behind nginx proxy to also include port

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Labels:
    • Story Points:
      5

      Description

      Hello,

      I was setting up nexus behind nginx proxy, using the documentation:
      https://help.sonatype.com/display/NXRM3M/Run+Behind+a+Reverse+Proxy#RunBehindaReverseProxy-Example:ReverseProxyVirtualHostatCustomContextPath

      The documentation suggests using the following configuration for the Host header:

            proxy_set_header Host $host;
      

      Our nginx runs on a different port than 80, and the nexus administration UI was not working with this setup, because of wrong links to JS / Images etc - they all were missing the port number.

      It took me some time to figure out, that nexus is using this Host header to generate the URLs, in the end I've updated my nginx configuration to this:

            proxy_set_header Host $host:$server_port;
      

      Would it be possible to update the documentation, if anyone hits the same issue? Maybe also Apache config needs something similar.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vladimir.hlavacek Vladimir Hlavacek
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title