2 servers = 1 apache or 2?

Posted on 2004-10-26
Last Modified: 2010-03-04
I am working on a new FC2 box that will be splitting my websites and mail. But, I am a little confused about routing across my internal network.
I don't have a separate Proxy server ( yet ).

internet->Router-> (main server box)

on resides a current copy of Apache and ALL my websites and mail server. Now that I have a new server to add to my farm,, I want to route some websites that would be on 205 to 206.

would my httpd.conf file on list
<virtual host>

I am looking for the syntax to route from 205 to 206.

Also, Would\Could I run a second copy of Apache on 206? Would this conflict?
I'm asking because I may want to migrate my 206 box to be the prime point, ie router->, instead of the older 205

I hope I have been clear enough about what I am attempting.

Thanks, Frog
Curious by Nature,
Linux by Choice
Question by:DBA_Frog
    LVL 15

    Assisted Solution

    hi Frog,

    It would depend on how your existing websites is currently built.

    I would presume that you had several websites, and each had their own Vhost defined as (you mentioned in the text).

    So, you had


    ... and the list goes on.

    if this is the case, I would suggest that you built the apache on 192,168.0.206 to be identical as those on 205, and defined the vhost the same as those on 205, except the Vhost container now


    And for those websites (on 205) that needs to be migrated, remove all directive, and replace it with the Proxy/ProxyPass directive

    For example, if you want to move from 205 to 206, then;

      ProxyPreserveHost On
      ProxyPass               /   
      ProxyPassReverse   /   

    Also good to enable ProxyPreserveHost to ensure that the request to Apache on 206 would still carry the "Host:" header for, to ensure the Vhost matching is done correctly.

    Some ref:

    LVL 5

    Accepted Solution

    On machine do this:

    Turn on Proxy_module in apache
                        LoadModule proxy_module /usr/lib/apache/1.3/

    Use VirtualHost section like this:

    <VirtualHost x.x.x.x>
        DocumentRoot /anything
        ProxyRequests Off
        ProxyPass /
        ProxyPassReverse /
        ErrorLog /var/log/apache/
        CustomLog /var/log/apache/ common

    Insert server information to host file:

    On Set up your servers....


    Author Comment

    Thank you both for the information.

    mrielf: Once I load the module for Proxy_module, will that re-compile Apache?, I've read a little about modules in Apache and I want to make sure I don't have to do any additional steps after loading the module. Other than the obviouse reload of apache.

    TIA for the info.
    LVL 5

    Expert Comment

    Of course you don't need to recompile apache, just restart it... (or reload configuration)

    Author Comment

    Again, Thank you both for your answers. Since they were very similar I split the points between the two of you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 ( But the ability to create custom scanning profiles a…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now