Set a variable in configuration file

Thomas iamkenzo at
Wed Jul 9 03:25:36 MSD 2008

A really stupid question: how do I set a variable in Nginx' config file?

I'd like to set: path=/var/www/mysites/

And then reuse this variable, for instance:

root $path/cool_site;

But I can't figure out how to do it.

More information about the nginx mailing list