cd /etc/apache2/sites-available nano 000-default.conf
where you need to set you virtual host directive to point to both - stackoverflow ![]()
<VirtualHost *:80> ServerName your-domain.com DocumentRoot /var/www/your-domain-root </VirtualHost> <VirtualHost *:443> DocumentRoot /var/www/your-domain-root ServerName your-domain.com SSLEngine On SSLOptions +StrictRequire SSLCertificateFile /path/to/server.crt SSLCertificateKeyFile /path/to/server.key SSLProtocol TLSv1 </VirtualHost>
To set Apache to allow both HTTP and HTTPS connections you need to shh to your site. Assuming your site is www.example.com you want to:
ssh root@example.com
and then edit: