Mapserver behind proxyserver

"Kler, Tijs de" <[email protected]> Wed, 9 Oct 2019 10:40:50 +0000
Newsgroups gmane.comp.gis.mapserver.user
Message-ID <[email protected]>
--===============9092969048415790504==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_09d5e12d34b948d4bf6aaa1caa32037damsterdamnl_"

--_000_09d5e12d34b948d4bf6aaa1caa32037damsterdamnl_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hey All,

I am running a mapserver docker container on port 80 using the following do=
cker image: https://github.com/PDOK/mapserver-wfs-postgis.

For deployment i have to run behind a proxyserver based on HAproxy that tak=
es care of ssl encryption.
Accessing GetCapabilites (https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?R=
EQUEST=3DGetCapabilities&SERVICE=3Dwfs) resolves and returns xml with the a=
vailable layers.
The layers however contains url references to port 80:
> https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=3DGetMetadata&laye=
r=3DInvloedsgebied_Metro

How does mapserver build the layer urls?
Does it use the request header of the GetCapabilities request to construct =
it? Or serverside configuration?
And if yes, which header fields or environment/config variables are used to=
 construct the layer URL?

Cheers,
Tijs


De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige =
afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzo=
ekt 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 t=
e delen met anderen. Voor verdere informatie over de rechten op informatie,=
 zie https://www.amsterdam.nl/proclaimer.


--_000_09d5e12d34b948d4bf6aaa1caa32037damsterdamnl_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"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;}
/* 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;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-fareast-language:EN-US;}
@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=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"NL" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hey All, <o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I am running a mapserver docker=
 container on port 80 using the following docker image: https://github.com/=
PDOK/mapserver-wfs-postgis.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">For deployment i have to run be=
hind a proxyserver based on HAproxy that takes care of ssl encryption.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Accessing GetCapabilites (https=
://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=3DGetCapabilities&amp;SE=
RVICE=3Dwfs) resolves and returns xml with the available layers.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">The layers however contains url=
 references to port 80:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">&gt; https://acc.dsr.maps.amste=
rdam.nl:80/mapserver?request=3DGetMetadata&amp;layer=3DInvloedsgebied_Metro=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">How does mapserver build the la=
yer urls?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"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=3D"MsoNormal"><span lang=3D"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=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Cheers,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Tijs<o:p></o:p></span></p>
</div>
<br>
<p style=3D"font-size: 9pt; font-family: Corbel; color: Grey"><br>
De gemeente Amsterdam streeft naar optimale dienstverlening en zorgvuldige =
afhandeling van e-mailverkeer. Als een e-mail niet voor u is bestemd, verzo=
ekt 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 in=
formatie over de rechten op informatie, zie https://www.amsterdam.nl/procla=
imer.<br>
<br>
</p>
</body>
</html>

--_000_09d5e12d34b948d4bf6aaa1caa32037damsterdamnl_--

--===============9092969048415790504==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbWFwc2VydmVy
LXVzZXJzIG1haWxpbmcgbGlzdAptYXBzZXJ2ZXItdXNlcnNAbGlzdHMub3NnZW8ub3JnCmh0dHBz
Oi8vbGlzdHMub3NnZW8ub3JnL21haWxtYW4vbGlzdGluZm8vbWFwc2VydmVyLXVzZXJz

--===============9092969048415790504==--