nginx macro like apache's mod_macro

Posted by karmic on Server Fault See other posts from Server Fault or by karmic
Published on 2010-04-21T06:44:53Z Indexed on 2010/04/21 6:53 UTC
Read the original article Hit count: 1018

Filed under:
|
|
|

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?

© Server Fault or respective owner

Related posts about nginx

Related posts about macro