<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Corbel;
panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.Shkpostityyli18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.Shkpostityyli21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">See <a href="https://mapserver.org/ogc/wfs_server.html">
https://mapserver.org/ogc/wfs_server.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You should have full control on the service URL by having “wfs_service_onlineresource” set in the metadata section.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:FI">Lähettäjä:</span></b><span style="mso-fareast-language:FI"> mapserver-users <mapserver-users-bounces@lists.osgeo.org>
<b>Puolesta </b>Kler, Tijs de<br>
<b>Lähetetty:</b> keskiviikko 9. lokakuuta 2019 13.41<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-users] Mapserver behind proxyserver<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hey All, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am running a mapserver docker container on port 80 using the following docker image:
<a href="https://github.com/PDOK/mapserver-wfs-postgis">https://github.com/PDOK/mapserver-wfs-postgis</a>.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For deployment i have to run behind a proxyserver based on HAproxy that takes care of ssl encryption.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Accessing GetCapabilites (<a href="https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs">https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs</a>) resolves
and returns xml with the available layers. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The layers however contains url references to port 80:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">> <a href="https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_Metro">
https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_Metro</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How does mapserver build the layer urls?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Does it use the request header of the GetCapabilities request to construct it? Or serverside configuration?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And if yes, which header fields or environment/config variables are used to construct the layer URL?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Tijs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NL" style="mso-fareast-language:FI"><br>
<br>
<o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><span lang="NL" style="font-size:9.0pt;font-family:"Corbel",sans-serif"><br>
De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzoekt de gemeente u vriendelijk ons van de juiste adressering op de hoogte te stellen en de e-mail te verwijderen
zonder de informatie te gebruiken en te delen met anderen. Voor verdere informatie over de rechten op informatie, zie
<a href="https://www.amsterdam.nl/proclaimer">https://www.amsterdam.nl/proclaimer</a>.<o:p></o:p></span></p>
</div>
</body>
</html>