已安装AWS ubuntu SSL,但未加载https或http

时间:2019-01-24 02:53:24

标签: amazon-web-services ubuntu ssl https openssl

我完全按照此youtube视频教程在我的AWS Ubuntu Apache2服务器上安装SSL。 YouTube网址:https://www.youtube.com/watch?v=m06TttS2ZAM

Ubuntu版本:Ubuntu 16.04.5 LTS Apache版本:Apache / 2.4.18(Ubuntu)

我的域名:Pilefo.com 这是启用站点的:000-default.conf详细信息:

<VirtualHost *:443>
         ServerAdmin admin@pilefo.com
         DocumentRoot /var/www/html
         ServerName pilefo.com
         ServerAlias www.pilefo.com
         SSLEngine on
         SSLCertificateFile /etc/ssl/certs/pilefo_com.crt
         SSLCertificateKeyFile /etc/ssl/certs/pilefo.com.key
         SSLCertificateChainFile /etc/ssl/certs/pilefo_com.ca-bundle
          <Directory /var/www/html>
                Options FollowSymLinks
                AllowOverride All
        </Directory>
</VirtualHost>


#Redirect all http traffic to https

<VirtualHost *:80>
      ServerName pilefo.com
      ServerAlias www.pilefo.com
      Redirect permanent / https://www.pilefo.com
</VirtualHost>

/etc/apache2/apache2.conf文件的详细信息 链接:https://textuploader.com/1avcv

Apache错误日志 https://textuploader.com/1avcn https://textuploader.com/1avcn

谢谢。

0 个答案:

没有答案