http and https redirection

Khapare Joshi khapare77 at gmail.com
Mon Jan 30 14:42:28 UTC 2012


HI,

i think you are right. I noticed that Nanny is playing integral role in
lvs. I used the script like :

TEST=`/usr/bin/lynx -head -dump http://$1 2>/dev/null | grep -c "HTTP/1.1
301" `
if [ "$TEST" == "1" ]
        then
            echo "OK"
        else
            echo "FAIL"
fi

And this worked well for me. Thanks for your help

On Wed, Jan 25, 2012 at 10:04 AM, Andrey Feldman <pr1 at pr1.ru> wrote:

> Hi.
> Maybe nanny just can't understand HTTPS, so it expected something like
> "200 OK" from the host, but there is an SSL handshake.
> Try to use send_program in lvs.cf:
> send_program = "curl https://1.0.0.0"
> expect = "OK"
> Or something like this.
>
>
> On Tue, Jan 24, 2012 at 11:58 PM, Khapare Joshi <khapare77 at gmail.com>
> wrote:
> > Hello all,
> >
> > my load balancer seems now working and it does the fail over. I have now
> > issue with https. I added the VIP in piranha interface both for port 80
> and
> > 443 and added REAL server in these VIPs. I then opened port 80 and 443 on
> > active router (I am not sure if port 443 require to open as client
> actually
> > connects to port 80 ). Then I added VIP address on Real server and
> > configure apache to listen on port 443. I have a virtual section in REAL
> > server as below:
> >
> >
> > <VirtualHost 192.168.1.3:80>
> >         ServerName mytest
> >         DocumentRoot /var/www/html/test
> >         CustomLog /var/log/test_access_log combined
> >         AddDefaultCharset UTF-8
> >         Redirect Permanent / https://piranhatest.com/
> > </VirtualHost>
> >
> > <VirtualHost 192.168.1.1:443>
> >         ServerName piranhatest.com
> >         DocumentRoot /var/www/html
> >         AddDefaultCharset UTF-8
> > </VirtualHost>
> >
> > I have all the certtificate and required configuration in ssl.conf for
> 443.
> > But it does not work and complain that I do not have virtualhost for
> > 192.168.1.3:443. If i do not add this virtualhost for 192.168.1.3:443,
> > ipvsadm -L do not even list the real server of 443. 192.168.1.3 is my
> real
> > server and 192.168.1.1 is my VIP.
> >
> > How does Piranha handles this ? does the Real server eth0 and eth0:1 has
> to
> > be configured on port 443 ? or is there something in configuration I can
> do
> > so the lvs listen on port 80 and redirect to one of the Real server then
> > serve sties with RS VIP interface ? I am getting confused.
> >
> > All I am trying to now is I have a site obviously users connects with
> port
> > 80 but I would like to redirect to 443 /https port and I want to do this
> > with my piranha setup. Any hint would be appreciated.
> >
> > Khapare
> >
> > _______________________________________________
> > Piranha-list mailing list
> > Piranha-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/piranha-list
>
>
>
> --
> --
> Andrey Feldman
>
> _______________________________________________
> Piranha-list mailing list
> Piranha-list at redhat.com
> https://www.redhat.com/mailman/listinfo/piranha-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/piranha-list/attachments/20120130/73e2c377/attachment.htm>


More information about the Piranha-list mailing list