Welcome! Log In Create A New Profile

Advanced

Re: Passing variables to access_log, error_log names

António P. P. Almeida
February 27, 2011 12:04PM
On 27 Fev 2011 08h17 WET, igor@sysoev.ru wrote:


>> I just tried:
>>
>> set $test foo;
>> access_log /var/log/nginx/$test.domain_access.log;
>> error_log /var/log/nginx/domain_error.log;
>>
>> And no access log entry is registered whatsoever. I'm using 0.9.4.
>>
>> Can you elaborate on your 'Variables in access_log should work'?
>> Do you mean it should work in a dirname and not on a filename?
>> E.g.:
>>
>> access_log /var/log/nginx/$test/domain_access.log;
>
> nginx workers must have rights to create files in /var/log/nginx.

They have. If I set:

access_log /var/log/nginx/foo.domain_access.log;
error_log /var/log/nginx/domain_error.log;

a new access log file is created. It just happens that with the above
setting of $set foo no foo.domain_access.log file is created.

--- appa



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Passing variables to access_log, error_log names

ajgon February 26, 2011 04:49PM

RE: Passing variables to access_log, error_log names

Richard Kearsley February 26, 2011 04:58PM

Re: RE: Passing variables to access_log, error_log names

ajgon February 26, 2011 05:08PM

Re: RE: Passing variables to access_log, error_log names

ajgon February 26, 2011 06:20PM

Re: Passing variables to access_log, error_log names

António P. P. Almeida February 26, 2011 05:22PM

Re: Passing variables to access_log, error_log names

Maxim Dounin February 26, 2011 06:04PM

Re: Passing variables to access_log, error_log names

António P. P. Almeida February 26, 2011 06:48PM

Re: Passing variables to access_log, error_log names

Igor Sysoev February 27, 2011 03:20AM

Re: Passing variables to access_log, error_log names

António P. P. Almeida February 27, 2011 12:04PM

Re: Passing variables to access_log, error_log names

Dayo February 27, 2011 11:27AM

Re: Passing variables to access_log, error_log names

Jim Ohlstein February 27, 2011 11:48AM

Re: Passing variables to access_log, error_log names

Dayo February 27, 2011 12:05PM

error log and session in PHP

equinox February 27, 2011 01:08PM

Re: error log and session in PHP

Eberx February 27, 2011 08:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
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