Hi,

See https://mapserver.org/ogc/wfs_server.html
You should have full control on the service URL by having  
"wfs_service_onlineresource" set in the metadata section.

-Jukka Rahkonen-


Lähettäjä: mapserver-users <mapserver-users-boun...@lists.osgeo.org> Puolesta 
Kler, Tijs de
Lähetetty: keskiviikko 9. lokakuuta 2019 13.41
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Mapserver behind proxyserver

Hey All,

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

For deployment i have to run behind a proxyserver based on HAproxy that takes 
care of ssl encryption.
Accessing GetCapabilites 
(https://acc.dsr.maps.amsterdam.nl/mapserver/wfs?REQUEST=GetCapabilities&SERVICE=wfs)
 resolves and returns xml with the available layers.
The layers however contains url references to port 80:
> https://acc.dsr.maps.amsterdam.nl:80/mapserver?request=GetMetadata&layer=Invloedsgebied_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, 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 
https://www.amsterdam.nl/proclaimer.
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to