Multiple virtual host configuration in apache

I am configuring apache with multiple virtual hosts and multiple apache instances running on the same unix box.
I have the following design, appreciate if someone can validate if this is the correct way or there are any potential errors in this
Apache instance 1
         domain.tld( - main site)
        legacy.domain.tld( - VirtualHost
       Proxy.domain.tld( - VirualHost
      oldsite.domain.tld( - VirtualHost

Apache Instacne 2
         domain2.tld( site

I am using IP based virtual hosts.
Can I use port 80 for all the virtual hosts. Docroot are different for all the Virtual Hosts.
Appreciate input from experts.


Who is Participating?
shalomcConnect With a Mentor CTOCommented:
There are three methods to have virtual hosts in apache.
Host name, IP address, and port.
As all your virtual hosts seem to have different names, it seems that you can use port 80 for all of them.

The allocation to different IP addresses is more a question of balancing the network load between cards, or serving different network segments.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.