标签:host pre localhost style 多个 code list server span
一台服务器可以配置多个网站,每个网站都称为一个虚拟主机,默认的虚拟主机可以通过 default_server 来指定::
[root@localhost ~]$ cat /usr/local/nginx/conf/vhost/default.conf server { listen 80 default_server; server_name www.123.com index index.html index.htm index.php; root /data/www; }
标签:host pre localhost style 多个 code list server span
原文地址:https://www.cnblogs.com/pzk7788/p/10332598.html