How can I make it so that if the picture is not found on request, show another (blank.png)?

    1 answer 1

    location /img { try_files $uri /img/blank.png; } 
    • I did this: location / images / map {try_files $ uri images / map / blank.png; } Now, with any request, the image produces 404 xD - Jeix
    • I forgot about the slash, but anyway, with any request, it issues 500 Internal Server Error - Jeix
    • Found a problem :) - Jeix
    • And how to share the solution? - Alshabalin
    • 2
      The problem is not in your example, but in the nginx settings :) rewrite or internal redirection cycle while internally redirecting to "/images/map/default.gif" - such an error was) - Jeix