Question

lets encrypt ssl is working in mydomain.com but not working in www.mydomain.com

Posted June 17, 2019 1.6k views
UbuntuLet's Encrypt

Hello everyone!
I have a domain that I could manage to run it as https://mydomain.com; however when I run my domain as www.mydomain.com or http://mydomain.com, the page redirected to https://www.mydomain.com and shows Your connection is not private. I had seen someone had the same question here but the answers are deleted and as the result I am asking it again. Please consider simple way of configuration as I am almost new in ssl. Thanks for the help guys! :)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

When you installed the certificate, did you add both mydomain.com AND www.mydomain.com?
Try reinstalling your certificates with -d domain.com -d www.domain.com
Replacing domain with your actual domain…

No I think I just used -d mydomain.com
There is not any shortcut to not re-install it again? Actually I used the tutorials from Example link

Which http server are you using: apache or nginx?

Submit an Answer