would it be possible to rewrite missing images to a 404 image without changing the url?
You're on your own with custom rewrite rules as it isn't my forte. Maybe some other members can help or also ask at Nginx Forum and Google personally, I'd just let the 404 image display as broken or redirect to a 404 page i.e. Xenforo - 404 pages do not display XenForo error pages, instead just showing the nginx error | Centmin Mod Community
Code: location ~* \.(png|jpg|jpeg|gif) { try_files $uri $uri/ @noimage; } location @noimage { rewrite ^ /404.gif; } as shown in the link below it now shows a gif in the case of 404 without changing the users URL :3 i imagine I could do this better but meh it works https://www.lordofthecraft.net/fjhsdfhskfhksdfhjdsfhsldffkdsflksdfjkdsjfsdfn.gif
huh that's odd seems to be fine for me? oh if you click on the link it won't let you see it but if you type it in it's fine that's odd