[MapProxy] OnlineResource on WMS Capabilities

martin.koska3 at gmail.com martin.koska3 at gmail.com
Thu Feb 9 12:45:25 EST 2012


Dn(a 9. 2. 2012 18:39, Oliver Tonnhofer  wrote / napísal(a):
> On 09.02.2012, at 17:46, Jorge Gaspar Sanz Salinas wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi, I have a pretty complicated environment (proxies) and I came across
>> a situation where I'm not sure if I found a bug or not.
>>
>> I've got a MapProxy multimap environment, and I set up the
>> OnlineResource at the yaml files.
> The OnlineResource in services.wms.md is something different than the OnlineResource of the DCPs. The former is just a pointer to a homepage of the service provider, for example.
>
>> The problem is that the capabilities document reflects the correct url
>> at the
>>
>> Service->OnlineResorce
>>
>> tag but differs from the
>>
>> Capability->Request->GetCapabilities->DCPType->HTTP->Get->OnlineResource
>>
>> where it puts the url it infers (I imagine) from the headers of the
>> request or something like that. The same for GetMap, GetFeatureInfo and
>> GetLegendGraphic operations.
> It uses the Host header. You need to set this header, if you are running MapProxy behind a reverse proxy. You can also set the X-Forwarded-Host header. See http://mapproxy.org/docs/nightly/deployment.html#http-proxy
>
>
=-O

       1. 8-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20120209/d7a39575/attachment.html


More information about the MapProxy mailing list