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:Roxis (roxi@public.gmane.org)
Date:Feb 27, 2008 8:42:27 am
List:ru.sysoev.nginx

On Wednesday 27 February 2008, Sean Allen wrote:

this works:

if ( -f /ah/sites/colon365.co.uk/public/.maintenance ) { set $maintenance 1; }

this doesn't:

if ( -f $document_root/.maintenance ) { set $maintenance 1; }

two questions,

1. is there a way to make the latter work? some slight change or tweak? 2. why doesn't it work? are variables not interpolated when doing file system checks like -f?

it should work. probably you have wrong root or root in wrong place. plz provide full config