创建默认虚拟主机配置文件作用:禁止任何人通过ip或未允许的域名访问web服务。 如:vim vhosts/default.conf server { listen 80 default; server_name localhost; index index.html index.htm index.php; root /tmp/111; deny all; }