Hi Mallory,

Maybe this doesn't answer your question, but:

To hide the sensitive database connection params, there is the "msencrypt.exe" utility (follow steps at https://mapserver.org/utilities/msencrypt.html ). For MS4W, you can open a CMD window, then cd /ms4w, setenv.bat, and then execute msencrypt

(regarding your question, I have not yet tried to store CONNECTION parameters in the CONFIG file, ms4w.conf, maybe others in the MS4W community have tried that : https://mapserver.org/mapfile/config.html )

thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/


On 2025-12-17 3:06 p.m., Mallory Cochran via MS4W-Users wrote:
Hello,

Is it possible to set either Windows or Apache environment variables to be used in a mapfile? Specifically, instead of putting the hard-coded database connection info inside CONNECTION, I want to use environment variables in their place.

Thank you!



_______________________________________________
MS4W-Users mailing list
[email protected]
https://lists.ms4w.com/mailman/listinfo/ms4w-users

Reply via email to