Welcome! Log In Create A New Profile

Advanced

nginx mod_macro or include parameters

Posted by mvnjpy 
nginx mod_macro or include parameters
April 20, 2010 01:05PM
Is there a way to use 'macros' in nginx

For example for apache I can do something like
[code]
<Macro myMacro>
<VirtualHost>
ServerName $blah
Alias www.$blah

Log /var/log/apache2/$blah
</VirtualHost>
</Macro>
[/code]

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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready