0 votes
in NGINX by
How You Can Prevent Processing Requests With Undefined Server Names?

1 Answer

0 votes
by

A server that just drops the requests can be defined as Server 

{

listen 80;

server_name “ “ ;

return 444;

}

Here the server name is kept as an empty string which will match request without the “Host” header field, and a special Nginx’s non­standard code 444 is returned that terminates the connection.

Related questions

+1 vote
asked Jan 15, 2022 in Sql by GeorgeBell
0 votes
asked Sep 27, 2021 in Azure Essentials by Robin
...