XAMPP添加多个站点之httpd-vhosts.conf 设置

1、在xampp\apache\conf\httpd.conf设置路径DocumentRoot和Directory 必须与xampp\apache\conf\extra\httpd-vhosts.conf 保持一致 

DocumentRoot "D:/www/"
<Directory "D:/www/">、

....
</Directory>、


2、httpd-vhosts.conf 

<VirtualHost *:80>
DocumentRoot "D:/www/xcx"
ServerName www.xcx.com
ServerAlias xcx.com
</VirtualHost>
<Directory "D:/www/xcx">
AllowOverride All
Order allow,deny
Allow from all
</Directory>

 

posted on 2018-10-29 17:31  微先锋  阅读(332)  评论(0编辑  收藏  举报

导航