7 messages in ru.sysoev.nginxfile tests in subfolder and rewriting
FromSent OnAttachments
Jonathan VanascoMar 10, 2007 10:18 am 
Igor SysoevMar 11, 2007 1:11 pm 
Jonathan VanascoMar 11, 2007 3:11 pm 
Boris BartsytsMar 13, 2007 8:30 am 
RoxisMar 13, 2007 8:42 am 
Boris BartsytsMar 13, 2007 9:03 am 
Gregg ReynoldsMar 16, 2007 7:56 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:file tests in subfolder and rewritingActions...
From:Boris Bartsyts (bart@public.gmane.org)
Date:Mar 13, 2007 8:30:44 am
List:ru.sysoev.nginx

hello,

i can't make nginx check for existence on the file in a subfolder:

if (-f /cache$request_filename) { rewrite ^(.*)$ /cache$1 break; }

and with a variable:

set $file /cache$request_filename;

if (-f $file) { rewrite ^(.*)$ /cache$1 break; }

both methods fail. i've tried to add nother / before $request_filename, with no luck. ideas, anyone?

Boris