<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial" size="2"><span style="font-size:10pt;">
<div>Dear list,</div>
<div> </div>
<div>we have configured mapproxy as follows:</div>
<ul style="margin:0;padding-left:36pt;">
<li>mapproxy is installed on a VM that is not publically accessible, configured as MultiMapProxy. It is served through gunicorn under <a href="http://localhost:8282"><font color="blue"><u>http://localhost:8282</u></font></a></li><li>Our publically accessible machine is configured with Apache as webserver</li></ul>
<ul style="margin:0;padding-left:72pt;">
<li>A reverse proxy points to the gunicorn address (including addition of the request header "/mapproxy). The proxy listens to requests with the location "/mapproxy"</li></ul>
<div>Now what we would expect is the following:</div>
<ul style="margin:0;padding-left:36pt;">
<li><a href="https://public-host/mapproxy"><font color="blue"><u>https://public-host/mapproxy</u></font></a> should show the available instances</li></ul>
<ol style="margin:0;padding-left:72pt;">
<li>Works: see <a href="https://icg4wascal.icg.kfa-juelich.de/mapproxy"><font color="blue"><u>https://icg4wascal.icg.kfa-juelich.de/mapproxy</u></font></a></li></ol>
<div>But the following problems occur:</div>
<ul style="margin:0;padding-left:36pt;">
<li>The links in the listing are wrong. The expected links would be of this format: <a href="https://public-host/mapproxy/mapproxy[0-9"><font color="blue"><u>https://public-host/mapproxy/mapproxy[0-9</u></font></a>]+<br>

But instead the following is the case:</li></ul>
<ol start="2" style="margin:0;padding-left:72pt;">
<li>They are linking to http</li><li>They are linking to <a href="http://public-host/mapproxy2"><font color="blue"><u>http://public-host/mapproxy2</u></font></a> directly</li></ol>
<ul style="margin:0;padding-left:36pt;">
<li>It is only possible to access the correct addresses by entering them manually. This wouldn´t be a big deal because these pages are only for demonstration purposes.</li><li>Second problem:<br>

The OnlineResource-Links in the GetCapabilities-document are wrong as well:</li></ul>
<ol start="4" style="margin:0;padding-left:72pt;">
<li>They are http instead of https</li><li>They have the format <a href="http://public-host/mapproxy[0-9"><font color="blue"><u>http://public-host/mapproxy[0-9</u></font></a>]+ instead of <a href="https://public-host/mapproxy/mapproxy[0-9"><font color="blue"><u>https://public-host/mapproxy/mapproxy[0-9</u></font></a>]+</li></ol>
<div> </div>
<div>A similar setup is working fine on another installation (but with http proxy in nginx, and nginx on the same VM as gunicorn). Therefore we suspect it is maybe a problem with https and/or our configuration.</div>
<div> </div>
<div>For the apache proxy, we followed the documentation under It looks like this:</div>
<div><i>#       forwarding to mapproxy</i></div>
<div>        <i>LoadModule proxy_module modules/mod_proxy.so</i></div>
<div>        <i>ProxyRequests Off</i></div>
<div><i><Location /mapproxy></i></div>
<div style="text-indent:35.4pt;"><i>ProxyPass </i><a href="http://134.XX.XX.XX:8282"><font color="blue"><i><u>http://134.XX.XX.XX:8282</u></i></font></a></div>
<div style="text-indent:35.4pt;"><i>ProxyPassReverse  </i><a href="http://134.XX.XX.XX:8282"><font color="blue"><i><u>http://134.XX.XX.XX:8282</u></i></font></a></div>
<div><i>            RequestHeader add X-Script-Name /mapproxy</i></div>
<div><i></Location></i></div>
<div> </div>
<div>Did anybody experience similar issues? And is there a solution for this problem?</div>
<div> </div>
<div>Cheers and thanks in advance,</div>
<div>Max Stephan</div>
<div> </div>
</span></font>
</body>
</html>