Solved

Multiple virtual host configuration in apache

Posted on 2011-03-16
1
336 Views
Last Modified: 2012-05-11
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
Comment
Question by:Mohit_t
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 33

Accepted Solution

by:
shalomc earned 500 total points
ID: 35160504
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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WHY MVC is the future technology... As many of you know, MVC is Model,View,Controller pattern. Model View Controller pattern was invented in a Smalltalk context at Xerox in late 1970s. Why is this buzz about MVC: --------------------------- …
There is a huge demand for CodeIgniter among the PHP web developers due to its dynamic features and benefits these days. It is one of most popular and agile open source PHP framework for creating robust web applications in PHP web development field.…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question