0
如下我已配置我的httpd-vhosts.conf
文件:爲什麼我的虛擬主機沒有域名匹配?
<VirtualHost seg.localhost:81>
ServerAdmin [email protected]
DocumentRoot "D:\path\to\public_html"
ServerName http://seg.localhost
ServerAlias http://seg.localhost
ErrorLog "logs/seg.log"
CustomLog "logs/seg" common
<directory "D:\path\to\public_html">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all
</directory>
</VirtualHost>
但是,當我去http://localhost:81/
在我的瀏覽器,它仍然擊中該文件夾。爲什麼忽略子域名?