Wednesday, 28 August 2013

Use mod_macro with environment variable

Use mod_macro with environment variable

Is it possible to use a macro with the value of a environment variable?
E.g.
<Macro setLog $name>
CustomLog "|cronolog -l /var/www/logs/$name/access.log
/var/www/logs/$name/%Y-%m-%d_access.log" logging
ErrorLog "|cronolog -l /var/www/logs/$name/error.log
/var/www/logs/$name/%Y-%m-%d_error.log"
</Macro>
SetEnvIf Host soup* path=soup
use setLog path
Which would 'print' the macro with path. Can I use the value for path? (in
this case soup)

No comments:

Post a Comment