Skip to content


Defining variables in Apache configs with mod_define

Rainer Jung has ported Ralf S. Engelschall and Christian Reiber’s mod_define to Apache 2.0 / 2.2. I find it exceedingly useful and convenient.

It’s an apache module that allows you to define arbitrary variables within your apache httpd configuration file and then use them *anywhere* in your configs. … Apache includes environment variables out of the box but you can’t use them inside Listen statements and the like.

mod_define references:

Install it like so: 
apxs -i -a -c mod_define.c

Posted in General. Tagged with , , , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.