首页 > 代码库 > Nginx 配置默认虚拟主机

Nginx 配置默认虚拟主机

为什么要配置默认的虚拟主机:http://www.cnblogs.com/pzk7788/p/7039496.html

[root@localhost ~]# vim /usr/local/nginx/conf/vhosts/default.confserver {    listen 80 default_server;    server_name localhost;    index index.html index.htm index.php;    root /tmp/1233;    deny all;}
[root@localhost ~]# mkdir /tmp/1233

 

 

 

 

    

Nginx 配置默认虚拟主机