GeoNode / ansible-geonode

Ansible GeoNode Scripts
https://galaxy.ansible.com/GeoNode/geonode/
7 stars 21 forks source link

Set host header needed for geoserver pdf print #45

Closed tschorr closed 6 years ago

tschorr commented 6 years ago

In order to make PDF printing using Geoserver work from GeoExplorer, I needed to also set the Host header in the Nginx configuration. Otherwise the printURL provided by the /geoserver/pdf/info.json response will point to localhost (e.g. http://127.0.0.1:8080/geoserver/pdf/1234567890.pdf.printout`. GeoExplorer will subsequently try to redirect to this URL, resulting in a page error.