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>
我在做什麼錯?