<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thanks - and yes, I loaded the layer before changing site ip /
    domain name.<br>
    That is rather unexpected. Also very inconvenient when migrating
    data from one host to another. Would that qualify as a bug?<br>
    <br>
    <div class="moz-cite-prefix">On 06/07/2016 01:39 PM, Simone Dalmasso
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAHAC+cQf-FqjtPM3gR7SG7yz0k1+JqEvvweb4_aX3WUJ42_vQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">hi,
        <div><br>
        </div>
        <div>make sure that the SITEURL is set to the geonode public
          domain, the one that you use to access it from your host
          system. You can do that with "sudo geonode-updateip
          yourdomain".</div>
        <div><br>
        </div>
        <div>If you want to add an external layer to the map composer
          then you will have to add the host in theĀ <span
            style="font-size:12.8px">PROXY_ALLOWED_HOSTS, but only in
            this case.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">For the thumbnail url, is it
            possible that you loaded some layers before changing the
            SITEURL?</span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-06-07 11:53 GMT+02:00 jonas
          ellehauge <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:jonas@ellevator.net" target="_blank">jonas@ellevator.net</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi again,<br>
              <br>
              After I got geonode up and running on a VirtualBox guest
              Ubuntu 14.04 server 64 bit, I still got various error
              messages and pages / images / map content that wouldn't
              show. I figured it might be related to geonode getting
              confused by the port forwarding on VB (eg forwarded http
              requests from 2280 on host machine to 80 on guest).<br>
              <br>
              It took a while to figure out how to set up VB with a
              local static IP address, and set the goenode-updateip to
              the correct IP. Now it mostly works fine except for the
              attached 403 error on <a moz-do-not-send="true">http://</a><host>/maps/new
              - something about a proxy not being in the
              PROXY_ALLOWED_HOSTS setting. <br>
              <br>
              What is the way to resolve this on a production server?<br>
              <br>
              On this test server, I just set debug to True and
              restarted apache2 and the error is gone.<br>
              <br>
              I find it surprising that some requests from the client
              are sent directly to the host IP instead of its domain
              name. E.g. some requests are sent in my case as:<br>
              <a moz-do-not-send="true"
href="http://10.0.0.206/uploaded/thumbs/layer-15349b62-2718-11e6-81f4-080027626197-thumb.png"
                target="_blank">http://10.0.0.206/uploaded/thumbs/layer-15349b62-2718-11e6-81f4-080027626197-thumb.png</a><br>
              instead of <br>
              <a moz-do-not-send="true"
href="http://geonode01/uploaded/thumbs/layer-15349b62-2718-11e6-81f4-080027626197-thumb.png"
                target="_blank">http://geonode01/uploaded/thumbs/layer-15349b62-2718-11e6-81f4-080027626197-thumb.png</a><br>
              <br>
              Why is that?<br>
              <br>
              Cheers,<br>
              Jonas<span class="HOEnZb"><font color="#888888"><br>
                  <br>
                  <div>-- <br>
                    <div align="center"><font size="-1"><a
                          moz-do-not-send="true" style="color:#005f89"
                          href="http://awesomemap.tools/"
                          target="_blank">awesomemap.tools</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="http://www.facebook.com/awesomemaptools.net"
                          target="_blank">@Facebook</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="http://twitter.com/awetools"
                          target="_blank">@Twitter</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="https://github.com/ellvtr"
                          target="_blank">ellvtr@Github</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="https://github.com/awesomemaptools/"
                          target="_blank">awesomemaptools@Github</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="http://www.linkedin.com/in/jonasellehauge/"
                          target="_blank">jonas@LinkedIn</a> | <a
                          moz-do-not-send="true" style="color:#005f89"
                          href="https://www.linkedin.com/company/10303547"
                          target="_blank">awesomemaptools@LinkedIn</a> |
                        <a moz-do-not-send="true"
                          href="tel:%2B47%20984%2081%20362"
                          value="+4798481362" target="_blank">+47 984 81
                          362</a> @mobile | jonas_ellehauge@Skype</font></div>
                    <br>
                  </div>
                </font></span></div>
            <br>
            _______________________________________________<br>
            geonode-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/geonode-devel"
              rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">SimoneĀ </div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <div align="center"><font size="-1"><a style="color:#005F89;"
            href="http://awesomemap.tools/">awesomemap.tools</a> | <a
            style="color:#005F89;"
            href="http://www.facebook.com/awesomemaptools.net">@Facebook</a>
          | <a style="color:#005F89;"
            href="http://twitter.com/awetools">@Twitter</a> | <a
            style="color:#005F89;" href="https://github.com/ellvtr">ellvtr@Github</a>
          | <a style="color:#005F89;"
            href="https://github.com/awesomemaptools/">awesomemaptools@Github</a>
          | <a style="color:#005F89;"
            href="http://www.linkedin.com/in/jonasellehauge/">jonas@LinkedIn</a>
          | <a style="color:#005F89;"
            href="https://www.linkedin.com/company/10303547">awesomemaptools@LinkedIn</a>
          | +47 984 81 362 @mobile | jonas_ellehauge@Skype</font></div>
      <br>
    </div>
  </body>
</html>