By sawthinkar
So I run the following command and given a list of domains that I would like to activate HTTPS for. However, the domain I would like to activate HTTPS is example.com, instead of blog.example.com. How can I do that? Or will it be the same for both domain and sub-domain to get activated?
~# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
1: blog.example.com 2: www.blog.example.com
Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter ‘c’ to cancel):
I have checked out this: https://wordpress.org/support/article/changing-the-site-url/ but the instruction does not seem to be straightforward enough for my issue.
Thanks.
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!
Hello, @sawthinkar
Could you please let me know if you’ve already changed the domain name used for the WordPress site from blog.example.com to example.com? If that is correct you can also alter the Apache configuration file and change the domain from blog.example.com to example.com in the server block as well.
In this way certbot can issue a SSL Certificate for example.com as per your wish.
I will recommend you to create a snapshot of your droplet and also backup your data in order to have a working copy of your site (both files and database) in case something goes wrong.
If you haven’t changed the domain name yet, let me know and I can try to explain the process in details.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.