<div dir="ltr">Hi Dan, thanks for the feedback. <div><ul><li>A default location is a reasonable idea. I started down this route initially but stopped because I can see folks wanting to use different config files for multiple virtual hosts on the same server - so being explicit seemed ok (and simpler). How does MapCache handle it's config file?</li><li>I think the config *must* be mandatory for CGI operations. Trying to support both legacy configuration and a config file is just too messy IMHO. With that, we can certainly set some recommended defaults in the example config file that is provided and setting MS_MAP_NO_PATH to true is fine with me. The code as it sits, does require MS_MAP_PATTERN to be set if full-path values are allowed.</li><li>+1</li></ul>--Steve</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 15, 2021 at 8:07 PM Daniel Morissette <<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Great addition.  A few thoughts/questions:<br>
<br>
- Perhaps the default behavior if MS_CONFIG_FILE is not set could be to <br>
look for the config file in /etc/mapserver.conf or <br>
$PREFIX/etc/mapserver.conf ... that would simplify configuration even <br>
more and would be the natural place where one would expect to find such <br>
a config file on Unix/Linux.  (Not sure about Windows though)<br>
<br>
- If we're going to introduce such a config file, perhaps we should make <br>
it mandatory, and also make MS_MAP_NO_PATH=TRUE the implicit default so <br>
that unless you explicitly change MS_MAP_NO_PATH then only mapfiles <br>
explicitly listed in the config can be used  (I know I've always been a <br>
big fan of backwards compatibility, but this time I think it may be <br>
simpler for the users to just deal with a config file that is locked <br>
down by default instead of the complicated/legacy environment variables <br>
in order to secure a server)<br>
<br>
- I like Seth's suggestion of being able to set global defaults in the <br>
config file that are inherited by the mapfiles and can be overridden <br>
locally in each one<br>
<br>
<br>
Daniel<br>
<br>
<br>
On 2021-06-15 13:04, Steve Lime wrote:<br>
> Hi all: Just checking on folks thoughts on moving forward with a config <br>
> file. There was a bit of discussion back in early April...<br>
> <br>
> <a href="https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File" rel="noreferrer" target="_blank">https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File</a> <br>
> <<a href="https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File" rel="noreferrer" target="_blank">https://github.com/sdlime/mapserver/wiki/MapServer-8.0-Config-File</a>><br>
> <br>
> Would be nice to move on it sooner rather than later.<br>
> <br>
> --Steve<br>
> <br>
> <br>
> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
> <br>
<br>
<br>
-- <br>
Daniel Morissette<br>
Mapgears Inc<br>
T: +1 418-696-5056 #201<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div>