How to set up 2 domains on one droplet without control panel using multisite?
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!
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.
@gndo could you tell me more about this:
I then modified apache and the web directory structure for vhost operations.
@ikobulov - I followed the tutorial from https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
Hope that helps.