Question

How to setup a subdomain for same/current domain on my WordPress Droplet

Back in mid-October 2019, I made the jump from wordpress.com to hosting my blog on Digital Ocean using a WordPress Droplet (I followed these instructions https://marketplace.digitalocean.com/apps/wordpress). I did not at that time setup any other subdomains or websites besides the wordpress.org site where I migrated my old blog to. Everything is working great for my blog, but I would like to host a subdomain website on the same server that is not a wordpress.org site.

I’m hesitant to create the new virtual host folders for Apache for fear that by doing so I will break the currently encryped HTTPS site for my blog. I reviewed the “How to setup subdomains with Apache on Ubuntu 18.04” which I’ve previously done on my on-premises hardware here at home. But that web server doesn’t currently host a wordpress site (so it’s not apples to apples).

Any suggestions or links to how to documents that I missed in my searching would be great!

Thanks,

Jon Moss


Submit an answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @mossjon314159,

It should be okay to add your WordPress Subdomain to your droplet even tho it’s an image from the martkeplace. It should be just a straight adding of a new Apache virtual host on your droplet. This shouldn’t mess with your current website/application as well.

If you are feeling uncertain, I’ll recommend having a look at DigitalOcean’s tutorial on Apache virtual hosts. I always like to keep it in hand when doing such changes:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04

Other than that, there isn’t anything unusual here. You should be able to start without worrying too much.

Having said that, I’ll recommend backing up your droplet just to be on the safe side.

Regards, KFSys