I have my server set up to use SSL in a separate VirtualHost, but when I attempt to use https://my.domain, I get a connection refused error. The following is my config I'm using:
<VirtualHost 18.104.22.168:80> ServerName api.bb0.us DocumentRoot /home/tristan/bb0_www/api </VirtualHost> <VirtualHost 22.214.171.124:443> ServerName api.bb0.us DocumentRoot /home/tristan/bb0_www/api SSLEngine on SSLCertificateFile /etc/apache2/bb0_cert/bb0.crt SSLCertificateKeyFile /etc/apache2/bb0_cert/private.key SSLCACertificateFile /etc/apache2/bb0_cert/root.crt </VirtualHost>
If you do try to go to http://bb0.us everything will work, but when you attempt https://bb0.us, it will not work. I don't have ufw or anything else blocking this, so I'm confused why this is not working. I've tried to add a NameVirtualHost, but that didn't do anything in fixing this.
Anyone have any ideas what may be causing this?