• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

Multiple virtual host configuration in apache

Hi,
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(10.3.11.106:80 - main site)
        legacy.domain.tld(10.3.11.107:80xx) - VirtualHost
       Proxy.domain.tld(10.3.11.108:80yy) - VirualHost
      oldsite.domain.tld(10.3.11.109:80zz) - VirtualHost
     onemoresite.domain.tld(10.3.11.110:80aa)VirtualHost


Apache Instacne 2
         domain2.tld(10.3.11.106:80bb)-main 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.

Thanks


0
Mohit_t
Asked:
Mohit_t
1 Solution
 
shalomcCommented:
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.

 
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now