标签:efault get 主机 index.php nginx hosts root style dex
为什么要配置默认的虚拟主机:http://www.cnblogs.com/pzk7788/p/7039496.html
[root@localhost ~]# vim /usr/local/nginx/conf/vhosts/default.conf
server {
listen 80 default_server;
server_name localhost;
index index.html index.htm index.php;
root /tmp/1233;
deny all;
}
[root@localhost ~]# mkdir /tmp/1233
标签:efault get 主机 index.php nginx hosts root style dex
原文地址:http://www.cnblogs.com/pzk7788/p/7043558.html