In this example root and access_log gets substituted, server_name and
error_log doesn’t. Where can I look up that in which contexts
substitution works?
On Thu, Jul 12, 2012 at 05:05:24PM -0400, mondalaci wrote:
In this example root and access_log gets substituted, server_name and
error_log doesn’t. Where can I look up that in which contexts
substitution works?
If variables are supported, it’s explicitly documented:
Note well: the above config snippet suggests you don’t need
variables, but need some configuration macros instead. Variables
are evaluated at run time for each request and it’s bad idea to
use them just to replace several static strings. Use your
favorite macro processor instead if you need to.
I didn’t know that variables are evaluated at run time. I won’t use
them for sure then. Having only a couple of server blocks I don’t need
to use macro processors yet.
Cheers,
Laci
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.