Handle 404's still
@@ -24,8 +24,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
- # Don't handle 404's here because they are from the application
- # We only want to catch 404's from the storage backend.
+ proxy_intercept_errors on;
+ error_page 404 = @proxito404;
add_header X-Served Django-Proxito always;
}
