unable to access the application from LVS server from LAN
ankush grover <[email protected]>
| Newsgroups | gmane.linux.highavailability.ultramonkey |
|---|---|
| Message-ID | <[email protected]> |
hey friends, I have configured Load Balancing with Apache.I have 3 machines on one machine LVS server is running and the other machines r the real servers. The LVS server ipaddress is 192.168.1.42 <http://192.168.1.42> and the real server ip addresses r 10.0.0.1 <http://10.0.0.1> and 10.0.0.2<http://10.0.0.2>.The apache is configured on both the real servers and on both the servers I can access the application.But when I try to access the application through Lan by giving this url http://192.168.1.42/his it does not works. Whereas If I give the url on real server http://localhost/his or http://10.0.0.1/his or http://10.0.0.2/his I am able to access the application.But I am not able to access the application from the Lan. the ldirectord.cf <http://ldirectord.cf> file checktimeout=10 checkinterval=2 #fallback=127.0.0.1:80 <http://127.0.0.1:80> autoreload=no #logfile="/var/log/ldirectord.log" logfile="local0" quiescent=yes # Virtual Server for HTTP virtual=192.168.1.42:80 <http://192.168.1.42:80> fallback=127.0.0.1:80 <http://127.0.0.1:80> real=10.0.0.1:80 <http://10.0.0.1:80> masq real=10.0.0.2:80 <http://10.0.0.2:80> masq service=http request="index.html" receive="Test Page" scheduler=rr #persistent=600 protocol=tcp checktype=negotiate I can see in the httpd logs that 10.0.0.1 <http://10.0.0.1> and 10.0.0.2<http://10.0.0.2>are added as real servers.But the problem is when I try to access the application through the LVS server.I have also configured masquerading. Can anybody please guide me what wrong I am doing ? Thanks & Regards Ankush Grover