将 Wheezy 升级到 Jessie apache 2 后 SSL 停止工作

Sle*_*rPL 1 ssl mod-ssl apache-2.4

我将服务器从 Wheezy 升级到 Jessie,Apache 2.4 停止工作......

特别是在端口 443 上没有 ssl ....

telnet myhost 443
GET https://myhost
<html><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/><body>Something in /var/www/html/index.html</body></html>>Connection closed by foreign host.
Run Code Online (Sandbox Code Playgroud)

它应该是:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
 Instead use the HTTPS scheme to access this URL, please.<br />
</p>
</body></html>
Connection closed by foreign host.
Run Code Online (Sandbox Code Playgroud)

SSLEngine 已开启 - 昨天一切正常,但它是 Wheezy,而不是 Jessie...

* 更新 * 新鲜感 - 我发现,到 :443 的连接被记录到 /var/log/apache2/access.log 而不是 /var/log/apache2-ssl/access.log 但为什么呢?

Sle*_*rPL 10

解决方案很难找到......只有巧合才能帮助我找到它。

Apache2.4 需要.conf扩展....

我有两个文件:/etc/apache2/sites-available/http/etc/apache2/sites-available/https课程相同符号连接的和/etc/apache2/sites-enabled/

试图找出我采用的解决方案default-ssl.conf并将其设为符号链接,并且有效!所以我复制了每一行来寻找不同之处,但一无所获。我重命名了httpsinto https.conf,做了一个符号链接,它也能用!!!

最大的错误是我自己创建符号链接,而不是使用a2ensite- 这将导致该http站点不存在 - 直到将其重命名为http.conf.

6 个小时的搜索什么都没找到......叹气......但也许这会帮助其他人......