MXBLOG - nginx启用域名访问，禁止ip直接访问 的评论
type: channel
link: https://moonjer.com/archives/1302/
description: server { listen 80; server_name www.test.com; //这里写你的域名 //加上如下一段规则，www.test.com换...