Re: Inconsistency in ability to use variables in nginx config

2013-11-13 Thread Valentin V. Bartenev
On Wednesday 13 November 2013 10:25:44 miguel_hamster wrote: > It seems like it's possible to use variables in some configuration > directives but not in others. This works: > > root /usr/www/$sitename/httpdocs; > > works, while these: > > access_log /var/log/www/$sitename/access.log; This shou

Inconsistency in ability to use variables in nginx config

2013-11-12 Thread miguel_hamster
It seems like it's possible to use variables in some configuration directives but not in others. This works: root /usr/www/$sitename/httpdocs; works, while these: access_log /var/log/www/$sitename/access.log; proxy_cache $sitename; do not, instead generating errors when I try to restart nginx.