我的httpd-vhosts.conf
文件配置如下:
<VirtualHost seg.localhost:81>
ServerAdmin my@email.com
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/
我的浏览器时,它仍然在点击那个文件夹。为什么子域被忽略?