Nginx redirects to a default server when the Host header/authority eklement of the URI is not valid. However, according to RFC and this StackExchange post, it shouldn't necessarily be this way. Nginx still throws bad request when the field values are invalid in terms of format, but the redirection should be a 404 imho.
Nginx redirects to a default server when the Host header/authority eklement of the URI is not valid. However, according to RFC and this StackExchange post, it shouldn't necessarily be this way. Nginx still throws bad request when the field values are invalid in terms of format, but the redirection should be a 404 imho.