[MapProxy] Wrong GetMap url when in https
olt at omniscale.de
Wed Aug 1 05:02:49 PDT 2018
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
Oliver Tonnhofer | Omniscale GmbH & Co KG | https://omniscale.com
OpenStreetMap WMS and tile services | https://maps.omniscale.com
> On 25. Jul 2018, at 12:16, Andrea Peri <aperi2007 at gmail.com> wrote:
> I have a mapproxy service as wms.
> in the yaml, I set:
> online_resource: https://www502.regione.toscana.it/sfondo_cached/wms
> So I guess the url should be returned in https.
> When I do the GetCapabilities request,
> I receice a response where the tag:
> <OnlineResource xlink:href="https://www502.regione.toscana.it/sfondo_cached/wms"/>
> Is effectivelly in https.
> But the GetMap online url is in "http"
> <OnlineResource xlink:href="http://www502.regione.toscana.it/sfondo_cached/wms?"/>
> There is some specific setting to have also the GetMap url in https or this is an issue ?
> Many thx.
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> MapProxy mailing list
> MapProxy at lists.osgeo.org
More information about the MapProxy