7 messages in ru.sysoev.nginxif $request_uri [not static file], th...
FromSent OnAttachments
Joe AstonNov 7, 2008 5:21 pm 
cynixNov 7, 2008 10:38 pm 
Joe AstonNov 8, 2008 4:02 am 
RoxisNov 8, 2008 4:38 am 
Joe AstonNov 8, 2008 5:30 am 
Fernando PerezNov 11, 2008 2:35 am 
Joe AstonNov 11, 2008 3:59 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:if $request_uri [not static file], then ...Actions...
From:Joe Aston (jo@joeaston.com)
Date:Nov 7, 2008 5:21:55 pm
List:ru.sysoev.nginx

How can I achieve the following?

I want to redirect all non-file requests to a script, like this:

if ($request_uri !~* (js|css|images|etc)$) { rewrite ^/(.+)$ /index.php?q=$1 last; break; }

...but this does not work. I do not want to use "if (!-f $request_filename)" to avoid disk overhead.

Can anyone make a suggestion?

Thanks!