Hello, New here and still learning a lot. But i will try to be as thorough as possible. If you need other info or more, please ask and I will provide.
I have a few domains that I host on a home computer server which are listed below in the cerbot certificates.
Home Server runs Ubuntu 16.04, Apache 2.4.18
I installed HTTPS certificates using Certbot and selected to redirect from http to https in the setup.
In my DNS, I have an A records set and CNAME records for www versions of sites.
I’m going to use Irwin Resources as my example as it is a simple page. This site has been working for months before I tried to load in SSL certificates 4 days ago. Possibly unrelated, but maybe not, I did add the www CNAME to DNS about the same time I loaded the SSL certs.
In /etc/apache2/sites-available, there are two files.
- irwinresources.com.conf
<VirtualHost *:80>
ServerAdmin some-email@emailaddress.com
ServerName irwinresources.com
ServerAlias www.irwinresources.com
DocumentRoot /var/www/html/irwinresources.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =irwinresources.com [OR]
RewriteCond %{SERVER_NAME} =www.irwinresources.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
-
irwinresources.com-le-ssl.conf
<VirtualHost *:443>
ServerAdmin greg.scott.irwin@gmail.com
ServerName irwinresources.com
ServerAlias www.irwinresources.com
DocumentRoot /var/www/html/irwinresources.com/public_htmlErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/irwinresources.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/irwinresources.com/privkey.pem
In the file /ect/apache2/sites-enabled, I have two files with much the same info. I will post in a follow up because I’m a “new user” and can’t post that many links in my initial post apparently.
At this point, if I go to the web address irwinresources.com in Firefox, the URL changes to https://irwinresources.com and I get the following:
“Unable to connect
Firefox can’t establish a connection to the server at irwinresources.com.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.”
If i go to the web address www.irwinresources.com, the page loads, but no https. It stays as www.irwinresources.com.
I’ve done quite a bit of research on this and haven’t been able to find the right piece(s) i’m missing. Again, i’m still a newb at this stuff and am trying to learn as I go. I appreciate the help in advance and look forward to hearing some good news!