网站无法使用,让我们加密证书

时间:2019-09-12 06:33:53

标签: ubuntu apache2 lets-encrypt

当我尝试在浏览器中打开站点时,出现了ERR_SSL_PROTOCOL_ERROR问题。

我在Django和此apache2配置上有站点。如果没有ssl网站,则工作正常。

<VirtualHost *:80>
    ServerName batut24.com
    ServerAlias www.batut24.com
    Redirect 301 / https://batut24.com
</VirtualHost>
<VirtualHost *:443>
    Servername https://www.batut24.com
    Redirect 301 / https://batut24.com
</VirtualHost>
<VirtualHost *:443>
    ServerName https://batut24.com

    SSLEngine on
    SSLCertificateFile   /etc/letsencrypt/live/batut24.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/batut24.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf

    WSGIDaemonProcess realjumpnew user=vadik python-home=/home/vadik/realjumpnew/areal/ python-path=/home/vadik/realjumpnew/realjumpnew:/home/vadik/realjumpnew/areal/lib/python2.7/site-packages
    WSGIProcessGroup realjumpnew
    WSGIScriptAlias / /home/vadik/realjumpnew/realjumpnew/RealJump/wsgi.py

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

    <Directory /home/vadik/realjumpnew/realjumpnew>
            Order deny,allow
            Require all granted
    </Directory>

    Alias /robots.txt /home/vadik/realjumpnew/realjumpnew/MainApp/templates/MainApp/robots.txt
    Alias /favicon.ico /home/vadik/realjumpnew/realjumpnew/MainApp/static/img/favicon/favicon.ico

    Alias /media/ /home/vadik/realjumpnew/realjumpnew/media/
    Alias /static/ /home/vadik/realjumpnew/realjumpnew/static/

    <Directory /home/vadik/realjumpnew/realjumpnew/static>
            Require all granted
    </Directory>

    <Directory /home/vadik/realjumpnew/realjumpnew/media>
            Require all granted
    </Directory>
</VirtualHost>

我有实际的letsencrypt证书,权限为777。

问题出在哪里?

0 个答案:

没有答案