<p dir="ltr">Hello Anne,</p>
<p dir="ltr">It is pretty hard for mapproxy to guess your apache setup :-). I think you are hoping this can be overrided somewhere within the configuration, but my gut tells me that would introduce new issues within mapproxy..<br>
</p>
<div class="gmail_quote">Op 21 mrt. 2013 23:06 schreef "Anne Blankert" <<a href="mailto:anne.blankert@geodan.nl">anne.blankert@geodan.nl</a>> het volgende:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello list,<br>
<br>
another question...<br>
<br>
I want to expose a MapProxy wms service to the internet as follows:<br>
<br>
<a href="http://servicehost/mywmsservice" target="_blank">http://servicehost/<u></u>mywmsservice</a><br>
<br>
But I have a problem to make getCapabilities produce the correct resource URLs<br>
If I do a request like:<br>
<br>
<a href="http://servicehost/mywmsservice?request=getcapabilities&version=1.1.1&service=wms" target="_blank">http://servicehost/<u></u>mywmsservice?request=<u></u>getcapabilities&version=1.1.1&<u></u>service=wms</a><br>

the resulting getCapabilities is:<br>
<br>
...<br>
<GetMap><br>
        <Format>image/jpeg</Format><br>
      <DCPType><br>
        <HTTP><br>
          <Get><OnlineResource xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.<u></u>org/1999/xlink</a>" xlink:href="<a href="http://servicehost/mywmsservice/map/service/" target="_blank">http://<u></u>servicehost/mywmsservice/map/<u></u>service/</a>?"/></Get><br>

        </HTTP><br>
      </DCPType><br>
    </GetMap><br>
...<br>
<br>
My problem is that MapProxy adds the suffix "/map/service/" to <a href="http://servicehost/mywmsservice" target="_blank">http://servicehost/<u></u>mywmsservice</a><br>
<br>
I would like the request-URL to be completely configuration and technology independent (not needing such things as mapserver specific map=somemap.map parameters or MapProxy specific configuration ("map") or wms service name ("service").<br>

<br>
I've set up an Apache reverse proxy like this:<br>
<br>
<Location /mywmsservice><br>
  ProxyPass <a href="http://internal_mapproxyhost/mapproxy/map/service" target="_blank">http://internal_mapproxyhost/<u></u>mapproxy/map/service</a><br>
  RequestHeader add X-Script-Name /mywmsservice<br>
</Location><br>
<br>
I had hoped that MapProxy would replace the script_name and path_info part of the URL ("/map/service") by the X-Script-Name ("/mywmsservice"). However, the X-Script-Name is not used as a replacement but as a prefix to /map/service (result: "/mywmsservice/map/service")<br>

<br>
Is there an easy way to prevent MapProxy from appending "/map/service" to the X-Script-Name in the getCapabilities output?<br>
<br>
Thanks,<br>
<br>
Anne<br>
<br>
<br>
<br>
-- <br>
------------------------------<u></u>--------<br>
*Geodan*<br>
President Kennedylaan 1<br>
1079 MB Amsterdam (NL)<br>
<br>
T <a href="tel:%2B31%20%280%2920%20-%205711%20311" value="+31205711311" target="_blank">+31 (0)20 - 5711 311</a><br>
E <a href="mailto:anne.blankert@geodan.nl" target="_blank">anne.blankert@geodan.nl</a><br>
<a href="http://www.geodan.nl" target="_blank">www.geodan.nl</a> <<a href="http://www.geodan.nl/" target="_blank">http://www.geodan.nl/</a>> | disclaimer <<a href="http://www.geodan.nl/disclaimer" target="_blank">http://www.geodan.nl/<u></u>disclaimer</a>><br>

------------------------------<u></u>--------<br>
<br>
<br>
______________________________<u></u>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapproxy</a><br>
</blockquote></div>