[mapserver-users] Parametrizing a MapCache config file

Schmid Andreas Andreas.Schmid at bd.so.ch
Thu Dec 17 05:26:37 PST 2020


Hi list

I'm looking for a way how I could parametrize a MapCache XML config file. Up to now, I have three config files: One that I use for development purposes, one for running MapCache in the test environment, and one for the production environment. The files differ only in the URL of the service metadata, the URL of the http-source, and whether the demo service is enabled. So when I change something in the file, I always need to make sure that I make the same change in the other files. Which I don't really like because it's error-prone.

One solution that I can think of is keeping only one file and putting placeholders in the appropriate places. And then running a sed-Script over it before deploying it.

But maybe someone knows of a smarter idea for this?

Thanks a lot,
Andy



More information about the mapserver-users mailing list