Skip to content

Commit

Permalink
Handle 404's still
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Mar 14, 2020
1 parent d017db6 commit dc4c8f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfiles/nginx/proxito.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dc4c8f7

Please sign in to comment.