I have a problem with my Apache 2.4.18 server while using ssl encryption. My server setup is: the apache server redirects everything on port 80 (http) to port 443 (ssl), this I realized with different site configuration.
And now my problem is: if I open the link https://www.example.com, I get the website I want.
But if I open https://example.com, I get the error: ERR_CONNECTION_REFUSED
Why is that so, and how can I solve it?
Virtualhost file for ssl:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin info@footprintgaming.de
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/letsencrypt/live/footprintgaming.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/footprintgaming.de/privkey.pem
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4