[MS4W-Users] MapServer behind reverse proxy

brett.winklesky at gmail.com brett.winklesky at gmail.com
Tue May 19 11:13:17 EDT 2020


Hello-  

 

I'm new here and to MapServer, and have a question about running MapServer
using reverse proxy to the Apache server.  

 

I was able to get it up and running using IIS to reverse proxy to
localhost:8080, but the mechanism that constructs the OpenLayers script seem
to be using the Apache configuration or something.  I've tried modifying the
response location headers, but can't get it working properly.  It's still
loading the template from http://localhost:8080/cgi-bin/mapserve.exe.     

 

http://gis.precisionfarms.net/cgi-bin/mapserv.exe?map=C:/ms4w/apps/local-dem
o/local.map
<http://gis.precisionfarms.net/cgi-bin/mapserv.exe?map=C:/ms4w/apps/local-de
mo/local.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all>
&MODE=browse&TEMPLATE=openlayers&LAYERS=all

 

Is there anything I can do to the configuration/setup so it returns the
appropriate host?  I was able to get it setup using IIS, but would like to
leverage MapCache in a few scenarios.   

 

Thanks!

 

BW

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/pipermail/ms4w-users/attachments/20200519/851857cd/attachment.htm>


More information about the MS4W-Users mailing list