<div dir="ltr">Hi !<div><br></div><div>When serving one Geonode instance using different host names or schemes (e.g. LAN/WAN ip, HTTP/HTTPS, multiple domain names), one would have to use "/" as SITEURL, so that absolute urls refer to the same scheme/domain.</div><div><br></div><div>When doing so, I get the following exception when creating layers programmatically or running the updatelayers command</div><div>:</div><div><div>  File "/usr/local/lib/python2.7/site-packages/geonode/base/models.py", line 940, in resourcebase_post_save</div><div>    if urlsplit(settings.SITEURL).hostname not in link.url:</div><div><br></div><div>It seems it is assumed that SITEURL is an absolute URL including scheme and host name.</div><div><br></div><div>The bug would be very easy to fix, but since it seems to be assumed SITEURL must be absolute, I was wondering if there may be some side effects in using "/" as SITEURL ?</div><div><br></div><div>If there are no side-effects, wouldn't it be good to have "/" as a default instead of " <a href="http://localhost:8000/">http://localhost:8000/</a>" ?</div></div><div><br></div><div>Thanks !</div><div><br></div><div>Olivier</div><div><br></div></div>