nginx default

一些只绑定了域名但又没有在nginx设置的网站,如果nginx没有设置 server_name _ ,这些域名会显示其他网站的内容。

server {
listen 80 default;
server_name _;
return 444;
}

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

w

Connecting to %s