【发布时间】:2018-05-25 18:24:00
【问题描述】:
我新安装的 WampServer 3.1.0 64 位中的每个 http 站点都会自动将没有 .htaccess 的简单 index.html 文件重定向到站点的 https 版本。
我在C:\wamp64\www 或C:\wamp64\www\example 中看不到.htaccess 文件。
如果我卸载 WampServer,然后安装 XAMPPserver,也会发生同样的事情。
帮助表示赞赏。
httpd-vhosts.conf:
<VirtualHost www.superiorit.dev:80>
ServerAdmin steve.doig@superiorit.com.au
DocumentRoot "C:/xampp/htdocs/superiorit"
ServerName www.superiorit.dev
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
httpd-ssl.conf: 是标准的默认文件。
我对@987654333@ 所做的唯一更改是:
Listen 172.18.1.106:80
我注意到 Windows 任务栏中的 Chrome 图标看起来与普通的 Chrome 图标不同:
如果我在 Edge 中加载网站,则不会发生重定向。
【问题讨论】:
-
很抱歉问的很明显,但是您启用了显示隐藏文件?
-
是的,谢谢@DaveCarruthers。
-
请向我们展示您的
httpd-vhosts.conf文件和您的httpd-ssl.conf文件以及您对httpd.conf文件所做的任何修改。如果httpd-vhosts.conf文件中有错误,Apache 将回退到httpd-vhosts.conf文件中定义的第一个虚拟主机 -
谢谢@RiggsFolly,我已经添加了这些细节。
标签: https wampserver