nginx proxy and 404 redirect
Add
proxy_intercept_errors on;
to location /photos
. Then your error_page 404 /myerrorfile.jpg
will work even when the 404 error comes from the upstream server.
Add
proxy_intercept_errors on;
to location /photos
. Then your error_page 404 /myerrorfile.jpg
will work even when the 404 error comes from the upstream server.