Пробовал так, получаю 500 ошибку location /static/images/mime/ { if (!-e $request_filename) { rewrite ^(.*)/[^/]+\.png$ $1/default.png last; } } Posted at Nginx Forum: http://forum.nginx.org/read.php?21,230251,230252#msg-230252