string and variable concat in -f checks

Boris Bartsyts bartzitz at
Tue Apr 10 19:08:18 MSD 2007


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.


More information about the nginx mailing list