I have just finished off building a new VPS on Digital Ocean. Uploaded my website and created the virtual host file for my domain! I also added an ssl cert to that domain and all went perfectly.
However it seems not to be configured properly. According to SSLLABS I have a domain name mismatch. I have edited my domain.name-le-ssl.conf file to look like this…
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName domain.name ServerAlias www.domain.name ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/domain.name/public_html ErrorLog path to file.... CustomLog path to file..... SSLEngine on SSLCertificateFile /etc/letsencrypt/live/domain.name/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/domain.name/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/domain.name/chain.pem Protocols h2 http/1.1 H2Direct on Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule>
I am sure that I have set this up correctly and I have not edited any other file could I have also added my ipaddress and domain.name to my /etc/hosts file!
Any help is greatly appreciated!
- Phillip Dews