Variables in Apache’s conf files

Apache 2.4 added a seemingly little known feature, setting and using variables in config files. It took me some time to find any information about this but it is in the documentation. It’s simple enough to use, at the beginning of your file you define the variable with Define, then you can access it with ${variable}. An example:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.