How to configure multi domain on the server

July 28, 2014 1k views

I am flowing all step below

but not able to configure more than one domain on my server. When i am trying to ping the website then getting other website response

PING ( 56(84) bytes of data.
64 bytes from ( icmpseq=1 ttl=64 time=0.032 ms
64 bytes from ( icmp
seq=2 ttl=64 time=0.058 ms
64 bytes from ( icmpseq=3 ttl=64 time=0.050 ms
64 bytes from ( icmp
seq=4 ttl=64 time=0.057 ms
64 bytes from ( icmpseq=5 ttl=64 time=0.054 ms
64 bytes from ( icmp
seq=6 ttl=64 time=0.050 ms
64 bytes from ( icmpseq=7 ttl=64 time=0.061 ms
64 bytes from ( icmp
seq=8 ttl=64 time=0.058 ms

1 Answer

You will have to create virtual hosts if you want to host multiple domains.

For centos, follow this topic.

For other OS, virtual hosts

by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache on Centos
Have another answer? Share your knowledge.