[MapProxy] Wrong GetMap url when in https
aperi2007 at gmail.com
Wed Aug 1 12:51:29 PDT 2018
I do some other test.
>The service URLs in the capabilities document are set to the right URL based on the GetCapabilities request.
I'm not sure to understand so I do this try:
I comment the "online_resource" setting.
And retry to call from a browser using the
Because the request use the https protocol I understand that the response should have
an onlineresource value using the "https" protocol.
But instead it is using the "http" protocol in the result responses.
So I guess the mapproxy detect the url but ignore the kind of protocol used in the request. So it use ALWAYS the http protocol inside the getcapabilities response.
However I will go to set the solution you suggest, implement a kind of
local reverse proxy.
Thx for help,
Il 01/08/2018 14:02, Oliver Tonnhofer ha scritto:
> the online_resource option is just for WMS service metadata (for linking to a homepage). The service URLs in the capabilities document are set to the right URL based on the GetCapabilities request.
> You need to add special headers if you use an HTTP proxy, so that MapProxy know about the original requested URL. See: https://mapproxy.org/docs/nightly/deployment.html#http-proxy
More information about the MapProxy