Return default placeholder image when image file on server not found

JoakimR nginx-forum at forum.nginx.org
Sun May 29 07:40:22 UTC 2016


Found the answer on IRC #Freenode #nginx by catbeard

location ~ \.(png|jp?g|gif)$ {
        	error_page 404 /404.png;
       	}

http://serverfault.com/a/481612

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267211,267213#msg-267213



More information about the nginx mailing list