Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: 3.1.0
-
Fix Version/s: None
-
Component/s: Configuration, Documentation
-
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.