Apache https 重定向导致 400 错误

标签 apache mod-rewrite http-status-code-404 tomcat6 mod-ssl

此问题发生在 Red Hat 实例上。安装的apache版本是[Apache/2.2.19],mod_ssl版本是[2.2.16.] HTTP 访问工作正常,但是当为 http 到 https 重定向启用 mod_rewrite 时,会导致以下 400 错误:

Bad Request

Your browser sent a request that this server could not understand.
Request header field is missing ':' separator.

Apache的error_log文件中的错误是:

request failed: error reading the headers

类似的设置在另一个环境中运行。有人可以帮我解决这个问题吗?

谢谢 诺曼·A.

最佳答案

更新 mod_ssl 和 httpd 也为我们解决了这个问题。感谢所有贡献者。

关于Apache https 重定向导致 400 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9484334/

相关文章:

apache - 找不到 nginx 代理页面

php - 在 apache 的两个不同端口运行两个 php 应用程序

php - 如何在没有连续请求的情况下创建 PHP 聊天应用程序?

找不到 Symfony2 Capifony app_dev.php

带有 phpMyAdmin 的 WordPress - 404 无处不在

google-app-engine - 静态网站的appengine自定义404页面

php - 将 ~1kk 字 rune 本保存到 MySQL

apache - Htaccess 重定向命令不区分大小写

apache - htaccess 重写 index.php 并在没有 www 的情况下重定向

apache - 如何确保 Apache 始终通过 HTTPS 提供单个页面?