Failover apache

Leonardo Bacha Abrantes <[email protected]> Fri, 4 Jan 2013 15:27:30 -0200
Newsgroups gmane.linux.keepalived.announce
Message-ID <CAG+8EEYc25g2g574wqHkwm5EP1GeZ61hMW7JF6K7inG3PLB3XQ@mail.gmail.com>
Hi people,

I'm trying to configure failover for apache service, but, when I try
to access the virtual ip on brownser, nothing happened.

Server 1 -> 10.1.123.153 on eth0
Server 2 -> 10.1.123.154 on eth0


My keepalived.conf (on both servers it are the same)

vrrp_instance VI_1 {
       interface eth0
       state MASTER
       virtual_router_id 51
       priority 100
       authentication {
           auth_type PASS
           auth_pass test123
       }
       virtual_ipaddress {
               10.1.123.159/21 dev eth0
       }
}

virtual_server 10.1.123.159 80 {
    delay_loop 3
    lb_algo rr
    lb_kind NAT
    nat_mask 255.255.248.0
    persistence_timeout 50
    protocol TCP

    real_server 10.1.123.153 80 {
        weight 50
        HTTP_GET {
            url {
              path /index.html
            }
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }

    real_server 10.1.123.154 80 {
        weight 50
        HTTP_GET {
            url {
              path /index.html
            }
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
}


Can you help me please ?

many thanks!

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812