How to prevent processing requests with undefined server names on	nginx 1.1.17
    Antonio P.P. Almeida 
    appa at perusio.net
       
    Mon Mar 26 11:44:29 UTC 2012
    
    
  
Try:
server {
    listen [::]:80 default_server;
    server_name _;
    return 444;
}
You'll have to define *all valid* hosts in each server block.
--appa
    
    
More information about the nginx
mailing list