set variables within config

Michael Shadle mike503 at gmail.com
Fri May 15 00:39:26 MSD 2009


On Thu, May 14, 2009 at 12:32 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> As of now nginx has no variables expanded during config loading -
> everything expaneded during request processing.  So using
> variables just to save some config lines is somewhat stupid as it
> means wasting lots of CPU time for every request.
>
> If you really need to simplify configs - it's easy to generate
> them using make and sed.

This might be what Igor meant by "configuration macros"?

Interesting. Will have to examine if I am abusing variables that much
in real-time in my configurations!





More information about the nginx mailing list