标签: nginx macros
在apache中是否存在nginx的宏模式?
例如,在apache中,我可以这样做:
<Macro MyMacro $host $port> <VirtualHost $host:$port> ServerName $port DocumentRoot "/var/www/$host" </VirtualHost> </Macro> Use MyMacro domain1.tld 80 Use MyMacro domain2.tld 80