I ran this command: I configured HTTPS with certbot
After I setup my certbot for my web ssl certification my website opens apache welcome page.
I run the following code and I get this resualt.
sudo apachectl -t -D DUMP_VHOSTS
*:80 www.caltrips.com (/etc/httpd/conf/httpd.conf:43)
*:443 is a NameVirtualHost
default server ip-172-31-7-120.us-west-2.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost ip-172-31-7-120.us-west-2.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost www.caltrips.com (/etc/httpd/conf/httpd-le-ssl.conf:2)
Hi @karentumba, and welcome to the LE community forum
It seems like the HTTPS vhost is a copy of the HTTP vhost.
Both of which only serve the "www" name.
Were you expecting otherwise?
Are you trying to reach https://caltrips.com/?
If so, then http://caltrips.com/ should have been configured first.
Note: That might have worked simply because there is no other HTTP vhost - so, it gets served for all HTTP requests. Which is NOT the case for HTTPS.
To that synchronization end...
What exactly are you using this vhost for?:
If it is NOT required, then you could just delete that file and end up with the same default situation you have with HTTP on the HTTPS side.
Which will "work" until you decide to add another site to your web server configuration ...
[food for thought - you can do it right (fix it) or do it again (fix it) each time you make a change]
So...
My advice is to add the base name to both vhosts.
And ensure the cert used has both names on it.