[GeoNode-users] Random 403 error using Geonode behind a web-gateway

Amedeo Fadini amefad at gmail.com
Wed Jul 6 06:08:09 PDT 2016


Hi everybody,

so my installation  of geonode  with ssl works fine (2.4 on Ubuntu
server via apt-get) but I still haven't found the time to update the
ssl guide because we're unable to view geonode from outside...

we ave a web gateway with apache 2.2 that forwards the request from
outside using proxy directive

gis.mydomain.com >> mygeonode

I had to set the SITEURL to the external name gis.mydomain.com as the
ssl certificate is issued for that domain, I also used
https://gis.mydomain.com as LOCATION in geoserver section of
local_settings.py (otherwise the command geonode updatelayers doesn't
work due to authorization failure)

Browsing the maps with geoexplorer the WMS requests are correctly addressed to

https://gis.mydomain.com/geoserver/wms  and the response is ok , but
sometimes apparently random a few of that requests fails with 403
Forbidden error, altought the same request is working after half a
second. There's any logic on the errors, just happens after a few time
browsing.. then works then happens again.

Apache logs and geoserver logs don't file any error on these requests and
using ssl with the machine hostname inside our network works fine, so
the problem is on the gateway configuration.

Any clue on how should be configurated the gateway proxy? Other
directives than these?

    ProxyPreserveHost On
    ProxyPass /geoserver https://mygeonode/geoserver
    ProxyPassReverse /geoserver https://mygeonode/geoserver


Amedeo Fadini


More information about the geonode-users mailing list