Hi,<div><br></div><div>Fixing the settings is correct and will fix layers and new maps. However for existing maps you have either to adjust the URL in admin maplayers or recreate the map. Thumbnails can be generated too via edit layer/map page. <span></span><br><br>Il venerdì 11 novembre 2016, Jonathan Doig <<a href="mailto:j.doig@unsw.edu.au">j.doig@unsw.edu.au</a>> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi devs<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve installed Geonode 2.4 on Ubuntu 16.04 following <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html" target="_blank">
these instructions</a> and changing where needed to make it work.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">However Geonode fails to display layers because the browser is making WMS requests to “localhost” rather than to my site URL.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve fixed the maps in the individual layer pages by changing the OGC_SERVER default PUBLIC_LOCATION in local_settings.py from <a href="http://localhost/geoserver/" target="_blank">http://localhost/geoserver/</a> to http://<my_server>/geoserver/<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I don’t know why that was needed though, it’s not in the installation doco.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In any case the thumbs and legend graphics are still broken e.g.:<u></u><u></u></p>
<p class="MsoNormal"><a href="http://localhost/uploaded/thumbs/layer-4151fb58-a7bb-11e6-994e-fa163e7da40e-thumb.png" target="_blank">http://localhost/uploaded/<wbr>thumbs/layer-4151fb58-a7bb-<wbr>11e6-994e-fa163e7da40e-thumb.<wbr>png</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My Geoserver uses the correct URL for WMS calls.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Advice please.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Jonathan Doig<i><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#339948"><u></u><u></u></span></i></p>
</div>
</div>

</blockquote></div><br><br>-- <br>Simone <br>