我正在尝试在 windows 8 下的 ammps 中创建一个虚拟主机,文档根目录应该在外部硬盘驱动器 F: 目录下,这是我的 httpd.conf
<VirtualHost 127.0.0.1:80>
<Directory "{$path}/www">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName localhost
ServerAlias localhost 127.0.0.1
ScriptAlias /cgi-bin/ "{$path}/www/cgi-bin/"
DocumentRoot "{$path}/www"
ErrorLog "{$path}/apache/logs/error.log"
CustomLog "{$path}/apache/logs/access.log" combined
</VirtualHost>
<VirtualHost *:80>
<Directory "F:/www">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
DocumentRoot "F:/www"
ServerName site1.com
</VirtualHost>
这是我的主机文件
127.0.0.1 site1.com
127.0.0.1 site2.com
127.0.0.1 site3.com
127.0.0.1 site4.com
127.0.0.1 site5.com
当我输入 site1.com 时,我得到了默认的虚拟服务器,我做错了什么?