[mapserver-dev] MapServer 8.0 Config File

Daniel Morissette dmorissette at mapgears.com
Tue Jun 15 18:00:49 PDT 2021


Great addition.  A few thoughts/questions:

- Perhaps the default behavior if MS_CONFIG_FILE is not set could be to 
look for the config file in /etc/mapserver.conf or 
$PREFIX/etc/mapserver.conf ... that would simplify configuration even 
more and would be the natural place where one would expect to find such 
a config file on Unix/Linux.  (Not sure about Windows though)

- If we're going to introduce such a config file, perhaps we should make 
it mandatory, and also make MS_MAP_NO_PATH=TRUE the implicit default so 
that unless you explicitly change MS_MAP_NO_PATH then only mapfiles 
explicitly listed in the config can be used  (I know I've always been a 
big fan of backwards compatibility, but this time I think it may be 
simpler for the users to just deal with a config file that is locked 
down by default instead of the complicated/legacy environment variables 
in order to secure a server)

- I like Seth's suggestion of being able to set global defaults in the 
config file that are inherited by the mapfiles and can be overridden 
locally in each one


Daniel


On 2021-06-15 13:04, Steve Lime wrote:
> Hi all: Just checking on folks thoughts on moving forward with a config 
> file. There was a bit of discussion back in early April...
> 
> https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File 
> <https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File>
> 
> Would be nice to move on it sooner rather than later.
> 
> --Steve
> 
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 


-- 
Daniel Morissette
Mapgears Inc
T: +1 418-696-5056 #201


More information about the mapserver-dev mailing list