Report this

What is the reason for this report?

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

Posted on July 10, 2020

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



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 @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

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.