7 messages in ru.sysoev.nginxRe: file tests in subfolder and rewri...
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:Re: file tests in subfolder and rewritingActions...
From:Roxis (roxi@public.gmane.org)
Date:Mar 13, 2007 8:42:42 am
List:ru.sysoev.nginx

On Tuesday 13 March 2007, Boris Bartsyts wrote:

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; }

try

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

or

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