Report this

What is the reason for this report?

Let's Encrypt certbot with and without `www`

Posted on February 6, 2022

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?



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.