Re: HTTPS and LVS
"Robert Hurst" <[email protected]> Fri, 24 Apr 2009 09:09:25 -0400
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Organization | Caregroup Information Services |
| Message-ID | <[email protected]> |
--===============0712079720==
Content-Type: multipart/alternative;
boundary="=-Y+sprNzeKxRrg6Waasg/"
--=-Y+sprNzeKxRrg6Waasg/
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
In our lvs.cf, we have these attributes set in our https service:
expect =3D "200 OK"
use_regex =3D 0
send_program =3D "/usr/local/sbin/check_hrms_ssl.sh %h 8443"
I crafted this script to check for https availability:
# cat /usr/local/sbin/check_hrms_ssl.sh
#!/bin/bash
HOST=3D$1
PORT=3D$2
wget --no-check-certificate --spider -q https://${HOST}:${PORT} && echo
"200 OK" || echo "404 Not Found"
exit 0
________________________________________________________________________
Robert Hurst, Sr. Cach=C3=A9 Administrator
Beth Israel Deaconess Medical Center
1135 Tremont Street, REN-7
Boston, Massachusetts 02120-2140
617-754-8754 =E2=88=99 Fax: 617-754-8730 =E2=88=99 Cell: 401-787-3154
Any technology distinguishable from magic is insufficiently advanced.
On Fri, 2009-04-24 at 08:48 -0400, Stavros Charalambous wrote:
>=20
>=20
> Stavros Charalambous
> MCSE CCNP
>=20
> Senior Systems Engineer
> Network Operations Center
> SpiderNet Services Ltd
>=20
> Tel: +357 22 844 844
> Fax: +357 22 844760
>=20
>=20
> I have tried to go live today with HTTPS in Piranha with lvs, and
> have failed miserabled.
>=20
> HTTP seems to work fine though. Is there any specific procedure for
> this?
>=20
> Stavros
>=20
> _______________________________________________
> Piranha-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/piranha-list
>=20
>=20
>=20
--=-Y+sprNzeKxRrg6Waasg/
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
<TITLE>HTTPS and LVS</TITLE>
</HEAD>
<BODY>
In our lvs.cf, we have these attributes set in our https service:<BR>
<BR>
<BR>
<TT> expect = "200 OK"</TT><BR>
<TT> use_regex = 0</TT><BR>
<TT> send_program = "/usr/local/sbin/check_hrms_ssl.sh %h 8443"</TT><BR>
<BR>
<BR>
I crafted this script to check for https availability:<BR>
<BR>
<TT><B># cat /usr/local/sbin/check_hrms_ssl.sh</B></TT><BR>
<BR>
<TT>#!/bin/bash</TT><BR>
<BR>
<TT>HOST=$1</TT><BR>
<TT>PORT=$2</TT><BR>
<BR>
<TT>wget --no-check-certificate --spider -q https://${HOST}:${PORT} && echo "200 OK" || echo "404 Not Found"</TT><BR>
<TT>exit 0</TT><BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<HR LENGTH="40%">
<BR>
<BR>
<BR>
<B><FONT SIZE="1"><FONT COLOR="#000066">Robert Hurst, Sr. Caché Administrator</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#3333ff">Beth Israel Deaconess Medical Center</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">1135 Tremont Street, REN-7</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">Boston, Massachusetts 02120-2140</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">617-754-8754 ∙ Fax: 617-754-8730 ∙ Cell: 401-787-3154</FONT></FONT></B><BR>
<FONT SIZE="1"><FONT COLOR="#9999ff">Any technology distinguishable from <A HREF="http://www.mega-cart.com">magic</A> is insufficiently advanced.</FONT></FONT>
</TD>
</TR>
</TABLE>
<BR>
<BR>
On Fri, 2009-04-24 at 08:48 -0400, Stavros Charalambous wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
<FONT SIZE="2">Stavros Charalambous</FONT><BR>
<FONT SIZE="2">MCSE CCNP</FONT><BR>
<BR>
<FONT SIZE="2">Senior Systems Engineer</FONT><BR>
<FONT SIZE="2">Network Operations Center</FONT><BR>
<FONT SIZE="2">SpiderNet Services Ltd</FONT><BR>
<BR>
<FONT SIZE="2">Tel: +357 22 844 844</FONT><BR>
<FONT SIZE="2">Fax: +357 22 844760</FONT><BR>
<BR>
<BR>
<FONT SIZE="2"> I have tried to go live today with HTTPS in Piranha with lvs, and have failed miserabled.</FONT><BR>
<BR>
<FONT SIZE="2">HTTP seems to work fine though. Is there any specific procedure for this?</FONT><BR>
<BR>
<FONT SIZE="2">Stavros</FONT><BR>
<BR>
<FONT SIZE="2">_______________________________________________</FONT><BR>
<FONT SIZE="2">Piranha-list mailing list</FONT><BR>
<FONT SIZE="2">[email protected]</FONT><BR>
<FONT SIZE="2"><A HREF="https://www.redhat.com/mailman/listinfo/piranha-list">https://www.redhat.com/mailman/listinfo/piranha-list</A></FONT><BR>
<BR>
<BR>
<BR>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-Y+sprNzeKxRrg6Waasg/--
--===============0712079720==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Piranha-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/piranha-list
--===============0712079720==--