Phill
1
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?
Phill
2
At Tue, 12 May 2009 09:41:17 +0100,
Phill [email protected] wrote:
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.
Phill
3
error_logä¸æ”¯æŒå˜é‡ã€‚error_logçš„ä½ç½®åˆä¸ä¼šç»å¸¸å˜ï¼Œä¹Ÿæ²¡ç”¨å˜é‡çš„å¿…è¦
Posted at Nginx Forum: