绑定多个域名,
第一步: 修改ServerName 127.0.0.1:80为#ServerName 127.0.0.1:80
第二步: 修改#Include conf/extra/httpd-vhosts.conf为Include conf/extra/httpd-vhosts.conf
第三步: 配置httpd-vhosts.conf文件内容如下
NameVirtualHost *:80 #一个域名配置开始
ServerAdmin localhost #绑定目录
DocumentRoot "d:/web/v9" #绑字域名,多个中间用,隔开
ServerName localhost #网站访问日志文件存放目录 ErrorLog "logs/dummy-host.localhost-error.log" CustomLog "logs/dummy-host.localhost-access.log" common #一个域名配置结束