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.
In order to make PDF printing using Geoserver work from GeoExplorer, I needed to also set the
Host
header in the Nginx configuration. Otherwise theprintURL
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.