Mailing List Archive

Domains and backhand
This is a multi-part message in MIME format.

------=_NextPart_000_0047_01C1D00E.BDB4D930
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello All:

I=B4m about to make an implementation of a cluster, and the idea is to =
use backhand to accomplish this.

Here is my question:

I have this domain www.foobar.com , and I will be clustering with two =
servers. Now, as far as I=B4ve read, those servers will need to have =
different names like www1.foobar.com and www2.foobar.com. Is there a way =
to keep the name www.foobar.com and make backhand redirect to the =
appropiate server without changing the URL?


Thanks a lot

Gabriel Maffia.

------=_NextPart_000_0047_01C1D00E.BDB4D930
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello All:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I=B4m about to make an implementation =
of a cluster,=20
and the idea is to use backhand to accomplish this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is my question:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have this domain&nbsp; www.foobar.com =
, and I=20
will be clustering with two servers. Now, as far as I=B4ve read, those =
servers=20
will need to have different names like www1.foobar.com and =
www2.foobar.com. Is=20
there a way to keep the name <A =
href=3D"http://www.foobar.com">www.foobar.com</A>=20
and make backhand redirect to the appropiate server without changing the =

URL?<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Gabriel =
Maffia.</DIV></FONT></BODY></HTML>

------=_NextPart_000_0047_01C1D00E.BDB4D930--
Domains and backhand [ In reply to ]
Gabriel Maffia wrote:

> I have this domain www.foobar.com , and I will be clustering with
> two servers. Now, as far as I´ve read, those servers will need to have
> different names like www1.foobar.com and www2.foobar.com. Is there a
> way to keep the name www.foobar.com <http://www.foobar.com> and make
> backhand redirect to the appropiate server without changing the URL?

The only reason you need to name the different is if you need to have
them show up with different names in the /backhand/ summary page, or if
you plan on doing HTTP redirection instead of proxying.

I always name my webserver differently.. That way when you get an
internal server error it says which machine and if you have a web
application you don't need to go calling gethostname() to get the
machines name, it is in the server configuration.

Use a virtualhost and set the ServerName to www.foobar.com.

Like:

ServerName www-s1-1.hostingcompany.com
NameVirtualHost myipaddress:80

<VirtualHost myipaddress:80>
ServerName www.foobar.com
....
</VirtualHost>

--
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
Phone: +1 301 776 6376 Fax: +1 410 880 4879
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7