Question

How to set up 2 domains on one droplet without control panel using multisite?

  • Posted January 5, 2015

Dear All,

I’m a complete noobie, so please, bear with me. I’ll try to be as detailed as possible:

I have done all the initial Ubuntu 14.04 setups, additional setups, installed LAMP Stack and installed wordpress using https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04

Then, I did what was suggested here - configured secure updates using this: https://www.digitalocean.com/community/tutorials/how-to-configure-secure-updates-and-installations-in-wordpress-on-ubuntu

Everything is ok. I am having some problems but finding the answers on this community, thanks to you guys.

I’ve looked at many other posts that sounded like my problem with 2 domains, but couldn’t find anything like I was searching for.

Now that I have a wordpress website installed and running already on my droplet, is there any way I can add a second domain name?

I used this method to setup multisite: https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-wordpress-sites-using-multisite

Everything went well, except for when I typed site2.com it kept redirecting me to old site1.com

At that point, I opened up my putty and undid everything I had done and my single site is running just fine.

but I can’t figure out a way to add a separate domain that doesn’t redirect to my old site (the one already hosted on my droplet)

Can you help me with that? If I’m not specific enough, please, ask me anything and I will give you as many details as possible.

P.S. I don’t have any control panel installed. Zpanel got my blocked a few times and I didn’t like IPSConfig, so I went with no control panel.

Thanks!

Subscribe
Share

@gndo could you tell me more about this: I then modified apache and the web directory structure for vhost operations.

I’ve only setup two domains whose A records point to the same machine but different CNAMEs that match their respective domain names. I then modified apache and the web directory structure for vhost operations. This works to get to the domain specific web pages. Unfortunately I have not tried multisite configuration for WP, so can’t help you there. Hope that helps.


Submit an 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.

WordPress Multisite can be used to create a “network” of blogs. In your case, it sounds like you want to simply create two separate WordPress instances on the same server. If that’s the case, you should check out this tutorial:

It walks you through the process of setting up two WordPress blogs on the same server using Apache Virtual Hosts to direct requests to the correct domain.