Discussion:
[Geoserver-users] Geoserver behind IIS proxy, tiled layer preview and print
P O'Toole
2017-07-11 20:47:39 UTC
Permalink
David -
Posting to this createUrl yields the getUrl: response
"localhost:8080/geoserver/.... .pdf.printout" which makes the generated pdf
inaccessible.
Has anyone any friendly advice? : ) Would much appreciate it!
Have you tried what the docs advise in http://docs.geoserver.org/stable/en/user/extensions/printing/protocol.html ? There's a couple of hits there if you ctrlF for "proxy" on that page.

If those don't work, you may have found a bug.

- Patrick

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
David I
2017-07-12 11:18:39 UTC
Permalink
Hi,

Thanks, the mention of 'proxy' in the supplied mapfish v2 protocol page is

"/The “url” query parameter is here to help the print servlet to know what
URL is used by the browser to access the servlet. This parameter is here
because the servlet can be behind a proxy, hiding the real URL./"

The json produced by GET
{PRINT_URL}/info.json?url={PRINT_URL}%2Finfo.json&var=printConfig is
identical to the one produced by GET {PRINT_URL}/info.json (except the
printConfig var in the second). printURL and createUrl are the external
adress, yet posting to create.json gets back getURL: localhost:8080.

It's a public page, if you want you can check it:
https://karta.eskilstuna.se/geoserver/pdf/info.json

Using print.pdf instead of create.json returns the pdf without hiccups but
that would mean a rewrite of parts of the map client.

I note that Mapfish v3 has a "proxy" config item in the yaml:
http://mapfish.github.io/mapfish-print-doc/configuration.html#!proxy

I'm not sure what it is supposed to do however.

Regards,
David.
Post by P O'Toole
David -
Posting to this createUrl yields the getUrl: response
"localhost:8080/geoserver/.... .pdf.printout" which makes the generated pdf
inaccessible.
Has anyone any friendly advice? : ) Would much appreciate it!
Have you tried what the docs advise in
http://docs.geoserver.org/stable/en/user/extensions/printing/protocol.html
? There's a couple of hits there if you ctrlF for "proxy" on that page.
If those don't work, you may have found a bug.
- Patrick
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
http://www.ianturton.com/talks/foss4g.html#/
http://geoserver.org/comm/userlist-guidelines.html
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Geoserver-behind-IIS-proxy-tiled-layer-preview-and-print-tp5327502p5327592.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
David I
2017-07-14 09:08:36 UTC
Permalink
Hello again mr O'Toole and the rest of the list!

Our friends at Sweco Sweden; J Glimmersten provided an elegant solution(a
flexible url rewrite) for the Geoexplorer application that we use to consume
the Geoserver integrated mapfish print service which means that we consider
this a mapfish issue at present and I was wondering whether you are of the
same mind and whether it should be reported?

Regards,
David
Post by P O'Toole
David -
Posting to this createUrl yields the getUrl: response
"localhost:8080/geoserver/.... .pdf.printout" which makes the generated pdf
inaccessible.
Has anyone any friendly advice? : ) Would much appreciate it!
Have you tried what the docs advise in
http://docs.geoserver.org/stable/en/user/extensions/printing/protocol.html
? There's a couple of hits there if you ctrlF for "proxy" on that page.
If those don't work, you may have found a bug.
- Patrick
------------------------------------------------------------------------------
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Geoserver-behind-IIS-proxy-tiled-layer-preview-and-print-tp5327502p5327881.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Loading...