【问题标题】:Apache fresh installation sslApache全新安装ssl
【发布时间】:2013-07-28 20:12:27
【问题描述】:

我在 CentOS 上安装了 Apache,但没有启用 SSL,但我收到以下错误。

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please. Hint:
https://192.168.1.50/ Apache/2.2.15 (CentOS) Server at 192.168.1.50
Port 443

我正在测试的页面是一个简单的 html 页面。

我没有对实际安装的 Apache 做太多改动。我编辑的唯一内容是允许在端口 80 上进行 LAN 访问的 IPTABLES 配置文件和用于更改文档根目录的 httpd.conf 文件。

我之前(在 Fedora 上)安装过 Apache,但没有这个问题。

谢谢。

【问题讨论】:

    标签: apache ssl centos


    【解决方案1】:

    我设法找到了问题所在。我找到了一个包含所有 SSL 配置行的 sll.conf 文件。默认情况下启用 SSL,这很奇怪。它位于 /etc/httpd/conf.d/ 和一个简单的

    <VirtualHost _default_:443>
    SSLEngine off
    </VirtualHost>
    

    成功了。

    【讨论】:

      猜你喜欢
      • 2017-03-05
      • 2018-11-10
      • 2018-09-23
      • 2016-12-24
      • 2014-06-26
      • 2018-01-08
      • 1970-01-01
      • 2018-11-22
      • 1970-01-01
      相关资源
      最近更新 更多