Hi

I have a WP site that I have migrated to a dev droplet and have got it working. In my DNS settings for the droplet I have put in an “@” symbol and have pointed it to my droplet. I have pointed my domain name (mydomain.co.uk), hosted with goDaddy to digital ocean NS servers

All is great

Now my second project is to move my other site, which is a multi-site WP installation to DO. All 4 sites as part of this multi-site WP installations domains are hosted with GoDaddy and can easily be pointed to DO

My main domain is mydomain2.co.uk for my multi-site WP site with 3 other domains set up as domain aliases, with my website hosting company TSO host.

How do I set up domain aliases in DO?

I have currently got
A mydomain.co.uk directs to 172.34.1111.9000 (not real) 3600 ( this is for the single site)

So I need to add mydomain2.co.uk as a main domain and my other 3 as domain aliases as well as the other single main domain above. 2 sites, 1 running one domain and one running 4 domains. These all need pointing to my droplets IP

I understand that i need to set up virtual hosts for mydomain2.co.uk as I have with mydomain.co.uk but I am not sure whether this needs any further virtual hosts file. I didn’t change any V-hosts config originally as it was shared hosting and my current site works in a multi-site configuration with only domain aliases

Cheers

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

Hello, @albertramsbottom

You will need to point the A records for the additional domains to the IP address of you droplet with Digital Ocean and then set the virtual host on the server. The process is not complicated and you should be able to set this quickly. You can follow one of these tutorials, I don’t know if you run Apache or Nginx and that’s why I’m giving you both tutorials:

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04

You can also check our tutorial about WordPress multisite:

https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-wordpress-sites-using-multisite

https://www.digitalocean.com/community/tutorials/how-to-set-up-wordpress-multisite-with-nginx-on-ubuntu-14-04

This tutorial is for Ubuntu 14.04, but the process should be relatively similar to the one on Ubuntu 18.04

Let us know if you have any questions.

Regards,
Alex

by Etel Sverdlov
In 2010, WordPress released version 3.0 of its popular content management platform. Among the many improvements included in the release, the WordPress community combined WordPress MU into the main WordPress configuration. Since the change, WordPress has made it easier to create multiple WordPress sites on one server.
Submit an Answer