[MapProxy] OnlineResource on WMS Capabilities

Jorge Gaspar Sanz Salinas jsanz at osgeo.org
Thu Feb 9 13:02:23 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 09/02/12 18:39, Oliver Tonnhofer escribió:
> 
> 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
> 
> 

Ok, the url I was having on the ops capabities with service.url tag is

"http://my-external-url, internal-host/mapconfig/service?"

Where:

- - my-exernal-url is the url of the host exposed out
- - internal-host
- - mapconfig the yaml config

This comma is telling me probably my sys admin is misplacing the header,
ughhh who knows...

Cheers

- -- 
Jorge Gaspar Sanz Salinas
http://es.osgeo.org
http://jorgesanz.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPNAovAAoJEAOYD75lvHdBVlkH/Alo9aDVh1qTUxcawx9Of5uK
y3HJx6v/+MG4XM8f5GZChocE0Yr5Q3FQWA+iPXXcsbpNOGNRWueH5bF55pdpvqLw
IBDu3MW0zKe/4f/Rzj21ziIdVSZmF0Pqn7Yi042mQZNBKCgBgVKtj9kDbvmNVN03
lwma7K2tv4FvHvJBCe+lKQfGzwo3poKbfAzpt9RyAvLTdDpn/366gD3xF7wg0kM8
oPljgCcj0ngJjmSWRf3+UZwJr5XRSHg0rETXPmZmQAuRNAWLVAhEJsu6f9sFDnTA
wqPQ1jzbf+Ug4k3ot7ALpKgwDwTKxxu64KHXO8A2dNrpzDAW5bf2CMws+60fr+g=
=5Fc0
-----END PGP SIGNATURE-----


More information about the MapProxy mailing list