Categories

Dec 16, 2019 in NGINX
Q: How You Can Prevent Processing Requests With Undefined Server Names?

1 Answer

Dec 16, 2019

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.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Oct 25, 2019 in NGINX
Feb 3 in NGINX
Dec 16, 2019 in NGINX
...