2 Domains 1 Server

I have been searching for days and I don't know exactly what I am looking for. Basically below is what I am trying to do:

I have 2 domains that I want to link to separate folders inside my Ubuntu server. However, one domain lets say domain1.us connects to my network and allows me to access other parts of my network. domain2.com is my own personal website that I use to test projects on. Domain2.com is going to be the main one on my server, but I want to be able to still route the domain1.us to the rest of my network.

3

1 Answer

For Apache2 you may find VirtualHosts helpful:

With Ubuntu you could navigate to /etc/apache2/sites-available and copy the available 000-default.conf to desired names (like site1.conf and site2.conf), edit those and enable them.

For more info:

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like