SSL安装后Apache2崩溃

时间:2015-09-02 19:33:04

标签: apache ubuntu ssl openssl

我正在尝试在我的apache2 ubuntu 14.04上安装ssl。在我安装完所有凭据并重启我的apache后,我得到了

  

抓住了SIGTERM关机

没有更多错误或解释。 我在etc / apache2中创建了一个名为ssl的文件夹并生成了我的csr&使用此命令键入:

openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr

这是我的000-default.conf in sites-available:

my 000-default:

<VirtualHost *:80>
ServerName mydomain.com/
Redirect / h t t p s ://mydomain.com/
</VirtualHost>
<VirtualHost *:443>

ServerName mydomain.com:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/962dfc9e10c76031.crt
SSLCertificateKeyFile /etc/apache2/ssl/mydomain.com.key
SSLCertificateChainFile  /etc/apache2/ssl/gd_bundle-g2-g1.crt
ServerAdmin admin@domain.com
DocumentRoot /var/www/html
 <Directory /var/www/html/>
     AllowOverride All
     order allow,deny
     allow from all
   </Directory

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

然后我打电话给

a2enmod ssl

并重启apache。但我得到了SIGTERM关机。我很困惑

注意:我在严格

上也有cloudflare ssl模式

0 个答案:

没有答案
相关问题