sonatype / nexus-book-examples

Example projects and other resources for the book Repository Management with Nexus
173 stars 206 forks source link

why not open the nexus-public issues #3

Closed foxundermoon closed 8 years ago

foxundermoon commented 8 years ago

[bug]nexus oss 3.0 for win64 set the base_url invalid. it behind a iis7 reverse proxy.

the html page content return the local address and local port.

foxundermoon commented 8 years ago

i can't find anywhere to report and get help.

mosabua commented 8 years ago

Check out our docs for reverse proxy setup.

http://books.sonatype.com/nexus-book/3.0/reference/install.html#reverse-proxy

Try the nexus users mailing list or our hipchat channel

http://www.sonatype.org/nexus/lists-live-chat-and-other-resources/

Of support.sonatype.com or nexus-feedback@sonatype.com

foxundermoon commented 8 years ago

@mosabua i had read all your doc。 and i use the iis7 url rewrite to reserves proxy. the doc just has apache httpd and nginx setting.

this is my public address view-source:http://registry.vvfox.com/

i has setting the base url http://registry.vvfox.com/ but the html content is still is this

<!DOCTYPE html>
<html>
<head>
  <title>Nexus Repository Manager</title>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="description" content="Nexus Repository Manager"/>
  <meta http-equiv="X-UA-Compatible" content="IE=9"/>

  <!--[if lt IE 9]>
    <script>(new Image).src="http://localhost:8882/static/rapture/resources/favicon.ico?_v=3.0.0-03"</script>
  <![endif]-->
  <link rel="icon" type="image/png" href="http://localhost:8882/static/rapture/resources/favicon-32x32.png?_v=3.0.0-03" sizes="32x32">
  <link rel="mask-icon" href="http://localhost:8882/static/rapture/resources/safari-pinned-tab.svg?_v=3.0.0-03" color="#5bbad5">
  <link rel="icon" type="image/png" href="http://localhost:8882/static/rapture/resources/favicon-16x16.png?_v=3.0.0-03" sizes="16x16">
  <link rel="shortcut icon" href="http://localhost:8882/static/rapture/resources/favicon.ico?_v=3.0.0-03">
  <meta name="msapplication-TileImage" content="http://localhost:8882/static/rapture/resources/mstile-144x144.png?_v=3.0.0-03">
  <meta name="msapplication-TileColor" content="#00a300">

            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/loading-prod.css?_v=3.0.0-03">
            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/baseapp-prod.css?_v=3.0.0-03">
            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/nexus-rapture-prod.css?_v=3.0.0-03">
            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/nexus-proximanova-plugin-prod.css?_v=3.0.0-03">
            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/nexus-coreui-plugin-prod.css?_v=3.0.0-03">
            <link rel="stylesheet" type="text/css" href="http://localhost:8882/static/rapture/resources/nexus-proui-plugin-prod.css?_v=3.0.0-03">

    <script type="text/javascript">
    function progressMessage(msg) {
      if (console && console.log) {
        console.log(msg);
      }
      document.getElementById('loading-msg').innerHTML=msg;
    }
  </script>
  </head>
<body class="x-border-box">

<div id="loading-mask"></div>
<div id="loading">
  <div id="loading-background">
    <img id="loading-logo" src="http://localhost:8882/static/rapture/resources/images/loading-logo.png?_v=3.0.0-03"/>
    <img id="loading-product" src="http://localhost:8882/static/rapture/resources/images/loading-product.png?_v=3.0.0-03"/>
    <div class="loading-indicator">
      <img id="loading-spinner" src="http://localhost:8882/static/rapture/resources/images/loading-spinner.gif?_v=3.0.0-03"/>
      <span id="loading-msg">Loading ...</span>
    </div>
  </div>

    <div id="code-load" class="x-hide-display">

                  <script type="text/javascript">progressMessage('Loading baseapp-prod.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/baseapp-prod.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading extdirect-prod.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/extdirect-prod.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading bootstrap.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/bootstrap.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading nexus-rapture-prod.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/nexus-rapture-prod.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading nexus-coreui-plugin-prod.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/nexus-coreui-plugin-prod.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading nexus-proui-plugin-prod.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/nexus-proui-plugin-prod.js?_v=3.0.0-03"></script>
                  <script type="text/javascript">progressMessage('Loading app.js');</script>
              <script type="text/javascript" src="http://localhost:8882/static/rapture/app.js?_v=3.0.0-03"></script>

            <script type="text/javascript">progressMessage('Initializing ...');</script>
    </div>
</div>

<form id="history-form" class="x-hide-display">
  <input type="hidden" id="x-history-field"/>
  <iframe id="x-history-frame"></iframe>
</form>

</body>
</html>

why not is the relative url or the base url .

version 2.x is working well after setting the base url.

foxundermoon commented 8 years ago

i'm try to use the outboundrules to rewrite the htm content. but allways failure. i can write a special proxy to replace the html content. but it just too tortuous .

mosabua commented 8 years ago

Like I mentioned .. please ask on the users mailing list or via support. Not here.

mosabua commented 8 years ago

I dont know how to proxy with IIS personally... others on the support team or other teams might know and you can contact them as mentioned above.

foxundermoon commented 8 years ago

@mosabua thank U ^_^ @bentmann @brianf @kellyrob99 @juven Give me a hand!