if $request_uri [not static file], then ...

Roxis roxis at list.ru
Sat Nov 8 15:38:47 MSK 2008


On Saturday 08 November 2008, Joe Aston wrote:
> Sorry, I did not make myself clear. I already have a fastcgi handler
> section.
>
> I think the problem is with the regular expression in " if
> ($request_uri !~* (js|css|images|etc)$) ":

location / {
    rewrite ^/(.+)$ /index.php?q=$1 last;
}

location ~ (js|css|images|etc)$ {
    ...
}

location ~ \.php {
    ...
}





More information about the nginx mailing list