Home

zhangyiqun

Thoughts, stories and ideas.

Notes Blog Archives About
08 Jan 2011

nginx中防止别人域名指向你的IP

nginx中防止别人域名指向你的IP,设置后没有在server中绑定的域名会返回400

server {

listen 80 default;

location / { return 400; }

}

Notes Blog Archives About