mod_macro - it's ace. I found it last month, we're using it on live and it's made our lives so much easier already.
(The author is absolutely determined it will not become Turing-complete - it does only very stupid substitution. He says if you want anything fancier, use Perl and abandon all hope.)
We have a pile of stuff like this in our apache/conf/ directories:
no subject
mod_macro - it's ace. I found it last month, we're using it on live and it's made our lives so much easier already.
(The author is absolutely determined it will not become Turing-complete - it does only very stupid substitution. He says if you want anything fancier, use Perl and abandon all hope.)
We have a pile of stuff like this in our apache/conf/ directories:
vhost-default.conf (relevant section, at end):
httpd.conf (load the module, define the macro, use the macro)
vhost-farnarkle.conf: