扫码关注官方订阅号
之前使用了mod_rewrite模块进行了重定向,现在安装mod_ssl模块后,mod_rewirte重定向就失效了?请问是什么原因,尝试过改变apache配置文件的 loadmodule的两个模块的加载顺序也不行
你不是你在 ssl 的 VirtualHost 块里又加了个 Directory 块,里面跟你外面目录选项不一致,比如外面是 AllowOverride All 而 ssl 配置里是 AllowOverride None。如果你的 DocumentRoot 跟外面一致,试着去掉 ssl 里的 Directory 块再看看。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你不是你在 ssl 的 VirtualHost 块里又加了个 Directory 块,里面跟你外面目录选项不一致,比如外面是 AllowOverride All 而 ssl 配置里是 AllowOverride None。如果你的 DocumentRoot 跟外面一致,试着去掉 ssl 里的 Directory 块再看看。