日期:2014-05-17  浏览次数:20810 次

本地让Apache服务器指向多个根目录

首先,system32里面?

? :? system32/drivers/etc/hosts文件? 需要指定一个访问地址
例如? 127.0.0.1??? ****.com

<Directory "D:/WampServer/www/project_name/web">
Options Indexes FollowSymLinks
AllowOverride all
??? Order Deny,Allow
??? Deny from none
??? Allow from all
</Directory>

NameVirtualHost 127.0.0.1:80

<VirtualHost ****.com:80>
??? DocumentRoot D:/WampServer/www/project_name/web
??? ServerName ****.com
??? ServerAlias ****.com
</VirtualHost>