The following Nginx configuration technique will allow you to do rewrites to status codes.
rewrite ^.*?.(?:swf|xml|gif|jpg|png|css|js)$ @404 break;
location = @404 {
return 404;
}
Related posts:
The following Nginx configuration technique will allow you to do rewrites to status codes.
Related posts: