mod_defunc is an Apache module that allows you to define values inside the apache conf file. Furthermore you will be able to use the IfDef expression to use your defined values to make conditional execution of configuration commands possible.
If the total lack of Documentation convinced you to give mod_defunc a try get it from the projects github repository: http://github.com/lnz/mod_defunc
Im working on documentation. no worries