很多人在安装了nginx后对于默认IP访问打开的nginx测试页面都没关注,很容易被别有用心的人进行恶意的域名解析 设置默认域名解析返回444 server{ listen 80 default_server; server_name _; return 444; access_log off; } 444 是 Nginx 定义的响应状态码,会立即断开连接,没有响应正文(不会存在带宽消耗)