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

Nexus web sites fail when proxied behind Apache mapping layer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows/jdk1,5

      Description

      I have gotten Nexus to successfully run behind apache by using the ProxyPass commands in apache - eg

      In my httpd.conf I use the following

      #

      1. ProxyPass - set Proxy settings
        #

      ProxyRequests Off

      <Proxy *>
      Order deny,allow
      Allow from all
      </Proxy>

      ProxyPass /repository http://localhost:8081/nexus/content/groups
      ProxyPassReverse /repository http://localhost:8081/nexus/content/groups
      ProxyPass /nexus http://localhost:8081/nexus
      ProxyPassReverse /nexus http://localhost:8081/nexus

      For maven retrieval commands including obtaining the index file for one of the groups, this works fine.

      When I login to http://<cachingserver:80>/repository - it displays the list of groups, however the links shown for those groups link to

      http://localhost:8081/nexus/content/groups/<groupid>

      This is hard coded into the html which is returned. Obviously this doesn't work.

      The html should use relative paths and as such it would work.

      In addition when I login to http://<cachingserver:80>/nexus all the links displayed within the server show http://localhost:8081 rather than the proxied mapping.

      Again - use of relative paths, or the ability to provide Nexus with the appropriate mappings would enable this type of apache proxying to be supported.

        Attachments

          Activity

            People

            Assignee:
            cstamas Tamás Cservenák
            Reporter:
            deleted_user Deleted User
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title