HI,<br><br>i think you are right. I noticed that Nanny is playing integral role in lvs. I used the script like :<br><br>TEST=`/usr/bin/lynx -head -dump http://$1 2>/dev/null | grep -c "HTTP/1.1 301" `<br>if [ "$TEST" == "1" ]<br>
then<br> echo "OK"<br> else<br> echo "FAIL"<br>fi<br><br>And this worked well for me. Thanks for your help<br><br><div class="gmail_quote">On Wed, Jan 25, 2012 at 10:04 AM, Andrey Feldman <span dir="ltr"><<a href="mailto:pr1@pr1.ru">pr1@pr1.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
Maybe nanny just can't understand HTTPS, so it expected something like<br>
"200 OK" from the host, but there is an SSL handshake.<br>
Try to use send_program in <a href="http://lvs.cf" target="_blank">lvs.cf</a>:<br>
send_program = "curl <a href="https://1.0.0.0" target="_blank">https://1.0.0.0</a>"<br>
expect = "OK"<br>
Or something like this.<br>
<div><div class="h5"><br>
<br>
On Tue, Jan 24, 2012 at 11:58 PM, Khapare Joshi <<a href="mailto:khapare77@gmail.com">khapare77@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> my load balancer seems now working and it does the fail over. I have now<br>
> issue with https. I added the VIP in piranha interface both for port 80 and<br>
> 443 and added REAL server in these VIPs. I then opened port 80 and 443 on<br>
> active router (I am not sure if port 443 require to open as client actually<br>
> connects to port 80 ). Then I added VIP address on Real server and<br>
> configure apache to listen on port 443. I have a virtual section in REAL<br>
> server as below:<br>
><br>
><br>
> <VirtualHost <a href="http://192.168.1.3:80" target="_blank">192.168.1.3:80</a>><br>
> ServerName mytest<br>
> DocumentRoot /var/www/html/test<br>
> CustomLog /var/log/test_access_log combined<br>
> AddDefaultCharset UTF-8<br>
> Redirect Permanent / <a href="https://piranhatest.com/" target="_blank">https://piranhatest.com/</a><br>
> </VirtualHost><br>
><br>
> <VirtualHost <a href="http://192.168.1.1:443" target="_blank">192.168.1.1:443</a>><br>
> ServerName <a href="http://piranhatest.com" target="_blank">piranhatest.com</a><br>
> DocumentRoot /var/www/html<br>
> AddDefaultCharset UTF-8<br>
> </VirtualHost><br>
><br>
> I have all the certtificate and required configuration in ssl.conf for 443.<br>
> But it does not work and complain that I do not have virtualhost for<br>
> <a href="http://192.168.1.3:443" target="_blank">192.168.1.3:443</a>. If i do not add this virtualhost for <a href="http://192.168.1.3:443" target="_blank">192.168.1.3:443</a>,<br>
> ipvsadm -L do not even list the real server of 443. 192.168.1.3 is my real<br>
> server and 192.168.1.1 is my VIP.<br>
><br>
> How does Piranha handles this ? does the Real server eth0 and eth0:1 has to<br>
> be configured on port 443 ? or is there something in configuration I can do<br>
> so the lvs listen on port 80 and redirect to one of the Real server then<br>
> serve sties with RS VIP interface ? I am getting confused.<br>
><br>
> All I am trying to now is I have a site obviously users connects with port<br>
> 80 but I would like to redirect to 443 /https port and I want to do this<br>
> with my piranha setup. Any hint would be appreciated.<br>
><br>
> Khapare<br>
><br>
</div></div>> _______________________________________________<br>
> Piranha-list mailing list<br>
> <a href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/piranha-list" target="_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
--<br>
Andrey Feldman<br>
<br>
_______________________________________________<br>
Piranha-list mailing list<br>
<a href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/piranha-list" target="_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br>
</font></span></blockquote></div><br>