Apache2不要求私人SSL密码的密码

我正在尝试为我的apache2服务器设置SSH。 阿帕奇似乎find我的私钥,因为它一旦我移动它抱怨。 但它不检查文件的内容:当我用乱码replace它时,它仍然会给我一个很好的启动

ks@survey:/etc/apache2/ssl.key$ sudo service apache2 restart [ ok ] Restarting web server: apache2 ... waiting . 

它不应该检查密钥文件的内容,并要求我的密码? 这是我的error.log说:

 [Wed Jul 23 22:21:55 2014] [notice] caught SIGTERM, shutting down [Wed Jul 23 22:21:56 2014] [notice] Apache/2.2.22 (Debian) mod_ssl/2.2.22 OpenSSL/1.0.1e mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 

(我的openssl版本应该被打上补丁并且没有心跳。)

Apachectl提供以下输出:

 ks@survey:/etc/init.d$ sudo /usr/sbin/apachectl -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: _default_:443 survey.zqa.tu-dresden.de (/etc/apache2/sites-enabled/workload-ssl:2) *:80 is a NameVirtualHost default server survey.zqa.tu-dresden.de (/etc/apache2/sites-enabled/workload:1) port 80 namevhost survey.zqa.tu-dresden.de (/etc/apache2/sites-enabled/workload:1) Syntax OK 

所以第二行的文件/etc/apache2/sites-enabled/workload-ssl就是你的pastebinnedconfiguration,对不对?

SSLEngine On添加到那里的<VirtualHost>块。

你有没有在Apache模块中启用SSL? 如果不是,你必须执行:

 a2enmod ssl 

那么如果ssl站点没有启用,你必须执行:

 a2ensite default-ssl 

你也必须修改ports.conf。