[GeoNode-users] Invalid HTTP_HOST header: '192.168.0.245:8000'. You may need to add '192.168.0.245' to ALLOWED_HOSTS.
Julio Quadros
jquadros at itcom.co.mz
Mon Dec 5 17:44:22 PST 2022
Hello
Following this document:
<https://docs.geonode.org/en/master/install/advanced/project/index.html>
GeoNode Project GeoNode master documentation
Run GeoNode Project
This command will run both GeoNode and GeoServer locally after having
prepared the Spatialite database. The server will start in DEBUG (or
DEVELOPMENT) mode, and it will start the following services:
GeoNode on <http://localhost:8000/> http://localhost:8000/
GeoServer on <http://localhost:8080/geoserver/>
http://localhost:8080/geoserver/
Run the server in DEBUG mode
./paver_dev.sh start
_____
My server has IP 192.168.0.245
When I open this URL <http://192.168.0.245:8000/>
http://192.168.0.245:8000/ in Chrome in another machine, I get this error:
DisallowedHost at /
Invalid HTTP_HOST header: '192.168.0.245:8000'. You may need to add
'192.168.0.245' to ALLOWED_HOSTS.
I´ve checked and I know that I have to add '192.168.0.245' to ALLOWED_HOSTS
in settings.py file, I've done that on /opt/geonode/geonode/settings.py:
ALLOWED_HOSTS = [HOSTNAME, 'localhost', '192.168.0.245', 'django',
'geonode']
but keep getting the same error. DO i need to restart Django? Am I editing
the correct file?
Please help
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20221206/3cb10449/attachment.htm>
More information about the geonode-users
mailing list