13 messages in ru.sysoev.nginxRe: string and variable concat in -f ...
FromSent OnAttachments
Wilson BilkovichApr 2, 2007 4:40 am 
Igor SysoevApr 2, 2007 5:25 am 
Wilson BilkovichApr 2, 2007 12:14 pm 
Igor SysoevApr 2, 2007 12:46 pm 
Wilson BilkovichApr 2, 2007 12:54 pm 
Igor SysoevApr 2, 2007 1:19 pm 
Wilson BilkovichApr 2, 2007 2:10 pm 
Igor SysoevApr 2, 2007 2:26 pm 
Wilson BilkovichApr 2, 2007 4:27 pm 
Boris BartsytsApr 10, 2007 8:07 am 
Igor SysoevApr 10, 2007 12:59 pm 
Boris BartsytsApr 11, 2007 3:42 am 
Igor SysoevApr 12, 2007 1:28 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: string and variable concat in -f checksActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Apr 10, 2007 12:59:49 pm
List:ru.sysoev.nginx

On Tue, Apr 10, 2007 at 06:08:18PM +0300, Boris Bartsyts wrote:

is it possible to do something like this:

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

it should check for the requested file in the /cache dir and if it doesn't exist proceed to remaining rewrite rules. i can't make this clause working, please correct it or point to other soultions.

$request_file is "$document_root$uri". If this is what you suggest, then you should use

location / {

root /data/w3;

if (-f /cache$request_filename) {

root /cache/data/w3; break; } }