Welcome! Log In Create A New Profile

Advanced

Re: Unable to use variables in error_log

Kirill A. Korinskiy
May 12, 2009 07:41AM
At Tue, 12 May 2009 09:41:17 +0100,
Phill <phill@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.

--
wbr, Kirill
Subject Author Posted

Unable to use variables in error_log

Phill May 12, 2009 04:41AM

Re: Unable to use variables in error_log

Kirill A. Korinskiy May 12, 2009 07:41AM

Re: Unable to use variables in error_log

坏人 May 12, 2009 10:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready