nginx macro like apache's mod_macro
- by karmic
Is there a way to use 'macros' in nginx
For example for apache I can do something like
<Macro myMacro>
<VirtualHost>
ServerName $blah
Alias www.$blah
Log /var/log/apache2/$blah
</VirtualHost>
</Macro>
and then use it for many hosts like:
Use myMacro hello.com
Use myMacro hi.com
Is there a way to do something similar in nginx?