[GeoNode-users] Error: IP Change

Miguel Torres migtorres at gmail.com
Thu Jun 16 03:38:48 PDT 2016


Hi,

I found the mistake. I was using a wrong version of local_settings.py

Now it all works

2016-06-13 15:33 GMT+01:00 Miguel Torres <migtorres at gmail.com>:

> It shows me the right ones ['10.2.0.122', 'localhost']
>
> 2016-06-13 13:22 GMT+01:00 Simone Dalmasso <simone.dalmasso at gmail.com>:
>
>> 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/20160616/978632ed/attachment.html>


More information about the geonode-users mailing list