<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Simone, thanks for the hints.<br>So in my case I need to leave them as default, isn't it?<br><br>Can you make me an example on when would be good to stated different value and not localhost?<br><br>Thanks<br><br>E.<br><br><br><div><hr id="stopSpelling">From: simone.dalmasso@gmail.com<br>Date: Tue, 15 Dec 2015 09:19:02 +0100<br>Subject: Re: allowed_host & proxy_allowed_host<br>To: frippe12573@hotmail.com<br>CC: geonode-users@lists.osgeo.org<br><br><div dir="ltr"><font color="#000000">they have different meaning,</font><div><font color="#000000"><br></font></div><div><font color="#000000"><span style="font-size:12.8px;">ALLOWED_HOSTS should contain localhost and the domain of the server</span><br></font></div><div><span style="font-size:12.8px;"><font color="#000000"><br></font></span></div><div><font color="#000000"><span style="font-size:12.8px;">PROXY_ALLOWED_HOSTS </span><span style="font-size:12.8px;">can potentially be empty if you don't plan to load external data in the maps.</span></font><span style="color:rgb(80,0,80);font-size:12.8px;"><br></span></div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">2015-12-14 15:49 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi,<br><br>I think I understand the meaning, but I'm not sure the correct usage.<br>Currently in my case I set them as default:<span><br><br>ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '::1']<br>PROXY_ALLOWED_HOSTS = ("127.0.0.1", 'localhost', '::1')<br><br></span>but I wonder if it is correct, because it allows only the request from localhost, isn't it?<br>I'm working on the configuration of a geonode already on production server, so<br>I wonder if the config above is correct, or should I use '*'?<br><br>Thanks<span class="ecxHOEnZb"><font color="#888888"><br><br>Eugenio.</font></span><div><div class="h5"><br><br><div><hr>From: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a><br>Date: Wed, 9 Dec 2015 21:42:59 +0100<br>Subject: Re: allowed_host & proxy_allowed_host<br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br>CC: <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><br><div dir="ltr">Eugenio,<div><br></div><div>ALLOWED_HOSTS are the authorized names and ip addresses that you can use to reach the server. See the django docs for more info.</div><div><br></div><div><span style="font-size:12.8px;">PROXY_ALLOWED_HOSTS are the names and ips that the proxy is allowed to connect to, for example for importing external services into the map composer (not the geonode services)</span><br></div></div><div><br><div>2015-12-09 17:14 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi everybody,<br><br>I would like to understand better the importance of the two variables:<br><br>ALLOWED_HOST<br>and<br>PROXY_ALLOWED_HOST<br><br>which are now mandatory (?) in the config file 'local_setting.py' in the master version.<br>Currently I set up this two variables as stated in the documentation:<br><br>ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '::1']<br>PROXY_ALLOWED_HOSTS = ("127.0.0.1", 'localhost', '::1')<br><br>However I wonder if this is correct for my environment.<br>I'm working for deploying a geonode on my server and not in my localhost (desktop) as well as <br>any VM. I have a server with its own ip and hostname.<br><br>How should I use these two variables? What do they mean?<br><br>Thanks<span><font color="#888888"><br><br>Eugenio <br> </font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Simone </div>
</div></div> </div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="ecxgmail_signature">Simone </div>
</div></div> </div></body>
</html>