<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,<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:<br><br>ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '::1']<br>PROXY_ALLOWED_HOSTS = ("127.0.0.1", 'localhost', '::1')<br><br>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<br><br>Eugenio.<br><br><div><hr id="stopSpelling">From: simone.dalmasso@gmail.com<br>Date: Wed, 9 Dec 2015 21:42:59 +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">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 class="ecxgmail_extra"><br><div class="ecxgmail_quote">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 class="ecxgmail_quote" 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 class="ecxHOEnZb"><font color="#888888"><br><br>Eugenio <br>                                         </font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="ecxgmail_signature">Simone </div>
</div></div>                                          </div></body>
</html>