loudapet / 42webserv

This project is about writing one's own HTTP server
2 stars 0 forks source link

Redirecting wrong hosts - Nginx vs. practice #18

Closed loudapet closed 1 week ago

loudapet commented 1 month ago

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.