[GeoNode-users] Error: IP Change
Simone Dalmasso
simone.dalmasso at gmail.com
Mon Jun 13 05:22:02 PDT 2016
Hm, let's check it the settings are correctly used, type the following:
$ geonode shell
>>> from django.conf import settings
>>> settings. ALLOWED_HOSTS
and see is the output is as expected.
2016-06-13 10:17 GMT+02:00 Miguel Torres <migtorres at gmail.com>:
> Yes, I have restarted apache2 and tomcat7 several times and tryed
> ALLOWED_HOSTS = ['*'] just to test and still got the 400 error
>
> 2016-06-13 6:16 GMT+01:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>
>> Hi Miguel,
>>
>> have you tried by restarting the web server? Maybe that part was skipped
>> in the updateip command
>>
>> 2016-06-12 23:42 GMT+02:00 Miguel Torres <migtorres at gmail.com>:
>>
>>> Hi!
>>>
>>> I have changed the ip address of the server with our Geonode installation
>>> and I have ran geonode-updateip to point to the new one.
>>>
>>> When I try to access it shows Bad Request (400). In the logs it shows:
>>>
>>> Invalid HTTP_HOST header: 'MY-IP'.You may need to add u'MY-IP' to
>>> ALLOWED_HOSTS
>>>
>>> I have checked in local_settings.py and I have:
>>>
>>> ALLOWED_HOSTS= [ 'MY-IP', 'localhost', ]
>>>
>>> So it seems to be ok.
>>>
>>> Do you have any idea of what should be happening?
>>>
>>> Best,
>>>
>>> Miguel Torres
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>
>>
>> --
>> Simone
>>
>
>
--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160613/03b73199/attachment.html>
More information about the geonode-users
mailing list