Skip to content

Commit 4b54be0

Browse files
committed
switch to 421 error code for invalid authority
1 parent 31a1c10 commit 4b54be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ http {
110110

111111
# https://trac.nginx.org/nginx/ticket/2012
112112
location / {
113-
return 404;
113+
return 421;
114114
}
115115
}
116116

@@ -136,7 +136,7 @@ http {
136136

137137
# https://trac.nginx.org/nginx/ticket/2012
138138
location / {
139-
return 404;
139+
return 421;
140140
}
141141
}
142142

0 commit comments

Comments
 (0)