Sorry, I meant to say that (!-f $request_filename) check IS a terrible way to check the existence of the file, as suggested by the documentation. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238747,238750#msg-238750