I have a situation where I have .map files in two different directories, one 
called stage and one called prod.  If there were a .map in each directory 
called foo.map, I would like to be able to reference it by making my query 
parameter map=/foo.map and setting the directory in configuration, rather than 
being forced to use map=/stage/foo.map or map=/prod/foo.map as the case may be. 
 Is this possible with some mapserver config?  I found this StackExchange 
article https://gis.stackexchange.com/questions/315039/mapserver-data-root
[https://cdn.sstatic.net/Sites/gis/Img/apple-touch-i...@2.png?v=54e3ab1edcf3]<https://gis.stackexchange.com/questions/315039/mapserver-data-root>
Mapserver data root - Geographic Information Systems Stack 
Exchange<https://gis.stackexchange.com/questions/315039/mapserver-data-root>
There is no concept of a data root, for a mapserver installation, or for a 
mapserver service. You can use local references within any map file to include 
other map files
gis.stackexchange.com
Which shows how you could use ScriptAlias in the Apache config to create an 
alias for each .map file, but we have over a thousand of them.
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to