Apache サイトで SSL を実装しようとすると、vhost ファイルの何が問題になるのでしょうか?

Apache サイトで SSL を実装しようとすると、vhost ファイルの何が問題になるのでしょうか?

Linode サーバーに SSL 証明書をインストールし、サイトの vhost ファイルを次のように変更しました。

<VirtualHost *:443> 
    SSLEngine on
    SSLCertificateKeyFile /etc/ssl/private/mysite.co.za.key
    SSLCertificateFile /etc/ssl/94762545.crt
    SSLCertificateChainFile /etc/ssl/94762545.ca-bundle


    ServerAdmin [email protected]
     ServerName mysite.co.za
     ServerAlias www.mysite.co.za
     DocumentRoot /home/public/www.mysite.co.za/public_html
     ErrorLog /home/public/www.mysite.co.za/logs/error.log
     CustomLog /home/public/www.mysite.co.za/logs/access.log combined
</VirtualHost>

このページから証明書をテストすると:https://www.digicert.com/help/すべてのテストは正常と返されますが、サイトの URL に移動しようとすると、サイトが表示される代わりに、サーバー上の既定のサイトが表示されます。

Apache エラー ログには、関連性があると思われるものは何も追加されていません。これはありますが、エラーのようには見えません。

[Thu Mar 22 05:50:30.134162 2018] [mpm_prefork:notice] [pid 4899] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.22 OpenSSL/1.0.1f configured -- resuming normal operations
[Thu Mar 22 05:50:30.134190 2018] [core:notice] [pid 4899] AH00094: Command line: '/usr/sbin/apache2'

サイトのエラー ログには何も追加されません。

「apache2ctl -S」の出力は次のとおりです。

VirtualHost configuration:
*:443                  mysite.co.za (/etc/apache2/sites-enabled/www.mysite.co.za.conf:1)
*:80                   is a NameVirtualHost
         default server test.mysite.co.za (/etc/apache2/sites-enabled/test.mysite.co.za.conf:1)
         port 80 namevhost test.mysite.co.za (/etc/apache2/sites-enabled/test.mysite.co.za.conf:1)
                 alias www.test.mysite.co.za
         port 80 namevhost test.othersite.co.za (/etc/apache2/sites-enabled/test.othersite.co.za.conf:1)
                 alias www.test.othersite.co.za
         port 80 namevhost othersite.co.za (/etc/apache2/sites-enabled/www.othersite.co.za.conf:1)
                 alias www.othersite.co.za
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
root@tomatie:~# 

vhost ファイルに何か問題がありますか?

関連情報