我试着添加;
<VirtualHost *:80>
ServerName localhost
DocumentRoot "d:'www2'" --> tried d:'www2'
<Directory "d:'www2'">
Options Includes Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Directoryindex index.php index.html index.html index.htm index.shtml
AccessFileName .htaccess
对于httpd-vhosts,我仍然只能访问"c:/wamp/www"。我想访问他们两个。
每个服务器名只能有一个文档根。
尝试使用另一个服务器名称(如localhost2)设置虚拟主机,然后修改hosts文件,使localhost2指向您的本地ip (127.0.0.1)