Hello everyone in the LE community! I am trying to secure 2 servers running Ubuntu 16.04, but I am running into issues with them. With one server, I can connect to the site with the domain name, yet it still says it’s not secure. After using whynopadlock.com it tells me that the common name does not match the hostname. I have checked all of my apache config files, and I don’t see the ip address anywhere it could be confused. The site address is genesisland.net, and here is the 000-default.conf:
<VirtualHost *:80>
ServerName genesisland.net
ServerAdmin nickd@miyuholdings.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Redirect "/" "https://genesisland.net/"
RewriteEngine on
RewriteCond %{SERVER_NAME} =genesisland.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
And here is the default-ssl.conf:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin nickd@miyuholdings.com
ServerName genesisland.net
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/genesisland.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/genesisland.net/privkey.pem
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
Now on to my other website. When I go to the domain name, it just goes right to the IP address still. As with the same above, I have changed all ServerName
entries with the domain name. The domain for the site is sudoreum.com.
Here is the 000-defualt.conf:
<VirtualHost *:80>
ServerName sudoreum.com
ServerAdmin nickd@miyuholdings.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Redirect permanent "/" "https://sudoreum.com/"
RewriteEngine on
RewriteCond %{SERVER_NAME} =haracoin.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
and the default-ssl.conf:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin nickd@miyuholdings.com
ServerName sudoreum.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
SSLCertificateFile /etc/letsencrypt/live/sudoreum.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sudoreum.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Any help would be appreciated, and if there is any more info needed, please let me know! Thank you for your time!