By pinnacle
I currently have my wordpress hosted on GoDaddy’s server for our website. We’ve developed something and have it hosted on DO. We want to tie them together with a subdomain. I’ve followed the instructions on GD’s site and created the A file in the DNS pointing to the DO’s IP address (easy). There’s obviously something I need to do on the DO side but I do not have any idea where to start. This is my first time doing anything like this so I’m really going to need baby steps explained please.
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!
What happens when you enter the new sub domain into your browser? How were you accessing your new site before this change?
Essentially, you want to add a “virtual host” to your web server config for this sub-domain - common web server software packages include Apache or nginx.
If it’s nginx on your droplet now, you could follow this tutorial: How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04
If you’re not running Ubuntu 16 or nginx, there are numerous step-by-step tutorials on DigitalOcean’s Community site for all of the popular combinations.
Hope this helps get you started - please come back with more questions if you get stuck!
Hi, @pinnacle
If you’re DNS zone is with GoDaddy (if you’re using GoDaddy’s nameservers) the only DNS change you need to make is the one you’ve already done. If you’re not using DigitalOcean’s nameservers you don’t need to make any DNS changes from your DO control panel.
If you’re already created the A record for the subdomain you can check if the DNS have propagated using tools like this one:
https://www.digitalocean.com/community/tools/dns
If everything is okay you should already been able to access the subdomain in your browser.
Hope that this helps! Regards, Alex
You can create a subdomain record in your DNS zone file for a domain registered with GoDaddy. Subdomains are a type of domain prefix, such as blog.yoursite.com, that uses an A record to point to an IP address. To add a subdomain that points to a domain name, you’ll need to add a CNAME.
You can watch a short animation of this task farther down the page.
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.