4 messages in ru.sysoev.nginxRe: Dynamic log file location
FromSent OnAttachments
Igor ClarkAug 23, 2007 3:40 am 
Igor ClarkAug 23, 2007 3:58 am 
John LauckAug 23, 2007 7:16 am 
Igor SysoevAug 23, 2007 1:41 pm 
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: Dynamic log file locationActions...
From:John Lauck (reca@public.gmane.org)
Date:Aug 23, 2007 7:16:26 am
List:ru.sysoev.nginx

I had a similar question regarding the nginx variables and paths in the conf file. Is it possible to define your own variables? For example, path names that are similar for development and production environments, but prefixed differently could be assigned, root $ROOT_DIR/deployed/current. I'm assuming this isn't possible. Am I correct?

John

On 8/23/07, Igor Clark <igor-+wACT2lsjD7SUeElwK9/Pw@public.gmane.org> wrote:

Obviously that should be "/path/to/error.log" in the error_log directive! On 23 Aug 2007, at 11:40, Igor Clark wrote:

Hi there, Is it possible to do something like:

server_name *;

access_log /var/www/dynamic/vhost1/$http_host/logs/access.log main; error_log /var/www/dynamic/vhost1/$http_host/logs/access.log notice;

I just get

2007/08/23 11:37:35 [emerg] 19103#0: open() "/var/www/dynamic/vhost1/$http_host/logs/access.log" failed (2: No such file or directory)

This machine only has 0.5.23, but that has served purposes perfectly well so far - would an update make any difference? Or is there an alternative way to do this?

Thanks very much,

Igor

-- Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749 5355 // www.pokelondon.com

We've gone sub-zero with the TopGear Cool Wall: http://www.topgear.com/coolwall/

We've gone sub-zero with the TopGear Cool Wall: http://www.topgear.com/coolwall/