<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    D&#328;a 9. 2. 2012 18:39, Oliver Tonnhofer&nbsp; wrote / nap&iacute;sal(a):
    <blockquote
      cite="mid:9DA54A44-2A03-460D-9832-9BE94D486FC2@omniscale.de"
      type="cite">
      <pre wrap="">
On 09.02.2012, at 17:46, Jorge Gaspar Sanz Salinas wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">-----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.
</pre>
      </blockquote>
      <pre wrap="">
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.

</pre>
      <blockquote type="cite">
        <pre wrap="">The problem is that the capabilities document reflects the correct url
at the

Service-&gt;OnlineResorce

tag but differs from the

Capability-&gt;Request-&gt;GetCapabilities-&gt;DCPType-&gt;HTTP-&gt;Get-&gt;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.
</pre>
      </blockquote>
      <pre wrap="">
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 <a class="moz-txt-link-freetext" href="http://mapproxy.org/docs/nightly/deployment.html#http-proxy">http://mapproxy.org/docs/nightly/deployment.html#http-proxy</a>


</pre>
    </blockquote>
    <span class="moz-smiley-s8"><span> =-O </span></span>
    <blockquote>
      <ol>
        <li><span class="moz-smiley-s11"><span> 8-) </span></span><br>
        </li>
      </ol>
    </blockquote>
  </body>
</html>