为什么我的 httpd-vhosts.conf 不起作用?我所有的 *.test 仍然重定向到“它有效!”

问题描述

只是一个问题。我想配置 dnsmasq 和 apache2 来改善我的本地 Web 开发环境。

一切正常,直到我配置了“httpd-vhosts.conf”。我想说明一下,在我的“站点文件夹中,我将在该文件夹中存储我的所有项目。

这是我的 http-vhosts.conf

Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require all granted

<Virtualhost *:80>
VirtualDocumentRoot "/users/alix/www/sites/%1/wwwroot"
ServerName sites.test
ServerAlias *.test
UseCanonicalName Off
</VirtualHost>

问题是,当我尝试访问 *.test 时,它们仍然将我重定向到 Apache2 自己的索引:“It Works”。为什么?

我希望我说清楚了, 谢谢大家!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)