not sure why there are two port 80 blocks. Both this file and the other are enabled on Apache. I was thinking maybe get rid of second 80 block, add my other domain redirect, disable the other file, and just use this one?
Certbot added it for me. I am not having any Certbot errors. When I use ssl labs to test the site I get a B grade (I need to disable tlsv1) and it says that the site is secure and has no problem with the certificate. However, when I tested the site on whynopadlock, it stated that traffic is not being redirected to https. I thought the RewriteRule in the first file was doing this redirect though so I am unsure of what the problem is.
Okay I am starting to think the wrong vhost is being used. What do you mean by your p.s. ? I am aware of that cookie I am just not understanding what you are asking.
Yes, but under normal circumstances this redirect works perfectly. For some reason, something is interfering. However, we can't see the interfering part, probably because you've only posted a part of the total Apache configuration. Perhaps it could even be a .htaccess configuration issue.
Therefore, @JuergenAuer asked for the output of apachectl -S previously.
You’ve many duplicate virtualhosts for your .net domain! You even have a port 80 virtualhost in the ~-le-ssl.conf file? Why’s that? Normally, certbot uses the port 80 virtualhost from the regular conf file to generate a separate ~-le-ssl.conf file for just the port 443 virtualhost.
I’m pretty sure you’ve got to clean up your configuration so there’s only a single port 80 virtualhost for each domain. And I think it’s best to keep the port 80 virtualhosts to the regular conf file and keep the port 443 virtualhosts in the -le-ssl.conf file.
Certbot created the entire ssl.conf and I made zero changes. I made the other one myself that I posted at the top. Okay so I am going to take the port 80s out of ssl.conf and take the port 443 out of the other. Then I am going to make separate files for the other domains like handmademama.shop.conf and an ssl.conf to go with each. Does that sound right?
certbot should not have put the port 80 virtualhost in that file. Perhaps there already was a surplus of port 80 virtualhosts before certbot ran?
Very good. Check with apachectl -S that it only has one port 80 virtualhost in the non-le-ssl conf files per domain and only one port 443 in the le-ssl-conf files.
Do you have a certificate for those domains? You can check with certbot certificates.
You can also use that certificate with the -0002 postfix. Unfortunately, I recon it’s easier to make the modifications to your Apache configuration manually, as you’re already manually editing the files, than to let certbot do it.