3 messages in ru.sysoev.nginxRe: Unable to use variables in error_log
FromSent OnAttachments
PhillMay 12, 2009 1:40 am 
Kirill A. KorinskiyMay 12, 2009 4:41 am 
"坏人"May 12, 2009 7:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Unable to use variables in error_logActions...
From:Kirill A. Korinskiy (cata@catap.ru)
Date:May 12, 2009 4:41:21 am
List:ru.sysoev.nginx

At Tue, 12 May 2009 09:41:17 +0100, Phill <phi@theactivitypeople.co.uk> wrote:

It seems as though its not currently possible to use variables in error_log config. At the moment I use a config similar to:

set $root /var/www/myapp; root $root; location ~ \.php($|/) { set $script $uri; fastcgi_param SCRIPT_FILENAME $root$script; }

I'd like to add:

error_log $root/logs/error.log;

but that tries to write to "\$root/logs/error.log" rather than the expanded "/var/www/myapp/logs/error.log".

Will this be available in future releases?

error_log don't support the http variables.