location ~* \.(png|jpg|jpeg|gif) { try_files $uri $uri/ @noimage; } location @noimage { rewrite ^ /404.gif; } I have been using this to redirect to a 404 image under an image not being found but would anyone know how to exclude a certain...