Question

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

Posted July 10, 2020 179 views
ApacheWordPress

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

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.

×
1 answer

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

by Lisa Tagliaferri
This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting.
Submit an Answer