Question

Let's Encrypt certbot with and without `www`

I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04 But only the www.my_domain was shown and now I completed this process. It works for www.my_domain with https but my_domain does not work.

What’s the best way to fix this?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
July 5, 2022

Hi there,

What you could do is to run the certbot command again and this time leave the input blank to select all options shown on the screen.

That way you will get a certificate for your non-www version too.

Best,

Bobby