Re: Return default placeholder image when image file on server not found

2016-05-29 Thread JoakimR
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

Return default placeholder image when image file on server not found

2016-05-28 Thread JoakimR
What is the right way to convert this from .htaccess to nginx.conf.. ##Return default placeholder image when image file on server not found RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule \.(gif|jpe?g|png) /image404.php [NC,L] Posted at Nginx Forum: https://forum.nginx.org/read.php