From ac65ee18913715109ff4e80c951c0d7ca72c18e9 Mon Sep 17 00:00:00 2001 From: Simon DENEL Date: Sat, 14 Jul 2018 15:49:45 +0200 Subject: [PATCH] Dropping = in the Nginx error_page setting With the = sign, the unauthenticated response is sent with the status code 200, not 401, which blurs the logs. See also: https://serverfault.com/questions/295789/nginx-return-correct-headers-with-custom-error-documents --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 03c753cce..332e9c1a4 100644 --- a/README.md +++ b/README.md @@ -399,7 +399,7 @@ server { location / { auth_request /oauth2/auth; - error_page 401 = /oauth2/sign_in; + error_page 401 /oauth2/sign_in; # pass information via X-User and X-Email headers to backend, # requires running with --set-xauthrequest flag