8 messages in ru.sysoev.nginxRe: if ,-f and variables
FromSent OnAttachments
Sean AllenFeb 27, 2008 8:26 am 
Igor SysoevFeb 27, 2008 8:41 am 
RoxisFeb 27, 2008 8:42 am 
Sean AllenFeb 27, 2008 9:33 am 
RoxisFeb 27, 2008 11:31 am 
Igor SysoevFeb 27, 2008 11:33 am 
Sean AllenFeb 27, 2008 2:11 pm 
Igor SysoevFeb 28, 2008 3:22 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: if ,-f and variablesActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Feb 28, 2008 3:22:53 am
List:ru.sysoev.nginx

On Wed, Feb 27, 2008 at 05:12:21PM -0500, Sean Allen wrote:

The "root" directive may be set in eny place of http, server, or locacation: it will be properly set or inherited:

http {

server { location / { # here root is /path } }

root /path; }

But this is not true for "set" directives: they are executed in order of thier apperance.

include /ah/sites/colon365.co.uk/conf/nginx/base; set $base /ah/sites/colon365.co.uk;

include /ah/sites/colon365.co.uk/conf/nginx/maintenance;

using $document_root, here it is "root ''", because $root is still undefined

include /ah/conf/nginx/www-shared; include /ah/conf/nginx/root; set $root $base/public; root $root;

You should to set "set $root $base/public;" early.

can you use variables in access_log setup, ie path to file?

access_log $some_thing/access.log combined;

i had a problem with that before but it was probably this exact issue.

No, nginx does not support variables in log names.