0
使用wampserver我无法使命名虚拟主机正常工作。我编辑了httpd.conf以使用Wampserver无法使命名虚拟主机正常工作
Include conf/extra/httpd-vhosts.conf
我已经将该域添加到我的system32/driver/etc/hosts文件中。我编辑了httpd-vhosts.conf文件,除非现在localhost不可用,否则似乎所有东西都可以工作。我设置的域(test123.com)工作正常,击中127.0.0.1正常工作,但击中本地主机挂起。错误日志中没有任何相关内容,并且在访问日志中没有提及它。这里是我编辑httpd-vhosts.conf的方法:
#
# Virtual Hosts
#
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# Tells Apache to serve the default WAMP Server page to "localhost"
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/wamp/www"
<Directory "C:/wamp/www">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
ServerName test123.com
ServerAlias *.test123
# Folder where the files live
DocumentRoot "D:/Projects/html/test123"
# A few helpful settings...
<Directory "D:/Projects/html/test123">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php
</VirtualHost>
我在做什么错?