Nginx Rewrite to 404
Wednesday, May 14th, 2008The 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;
}
The following Nginx configuration technique will allow you to do rewrites to status codes.