Virtualhosts are indeed supported but I found a tiny quirk in attempting
forwarding with httpd to other servers that are Machnine-less bound. A
machine-less server has it's OWN ip's just for that httpd and uses NFS to
reach it's dynamic/static content. Example:
myrealboxsdomain.com -> 10.1.1.1
This machine has 10.1.1.2 as an alias IP address.
www.myvirtualdomain.com -> 10.1.1.2
www.mysecondvirtualdomain.com -> 10.1.1.2
mysecondrealboxsdomain.com -> 10.1.1.3
This machine has 10.1.1.4 as an alias IP address.
www2.myvirtualdomain.com -> 10.1.1.4
www2.mysecondvirtualdomain.com -> 10.1.1.4
Now
http://myrealboxsdomain.com/cgi-bin/backhand-test would show hand off to mysecondrealboxsdomain.com because of
the weighting system I use and the second box is a dually whereas the
first isn't. But the delima I saw was then hitting=20
http://www.myvirtualdomain.com I got back the 404 not found errors.. In
fact I got this error for all virtual sites. When the dualy became
loaded and a hand off wasn't attempted
http://www.myvirtualdomain.com worked.
I found the problem to be in the backhand broadcasts... If you nitice the
syntax of the broacast directive you can specify what IP address the
backhand hands out. I had to use the ip addresses associated with the
virtualhosts instead of the ip's of the respective boxen. =20
So I wound up with this on the server that had 10.1.1.4 aliased:
MulticastStats 10.1.1.4 10.1.1.255:4445
AcceptStats 10.1.1.4
AcceptStats 10.1.1.2
And 10.1.1.2 as the source broadcasting address on the 10.1.1.1 box.
With the use of a sniffer and a few other tools I was able to determine
when the default multicast sourceless multicast address comes from a box
it uses the default binded ip address.. Which happen to anwer for / but
not any of the virtuals.. So the first example logically worked and the
virtual didn't because they were not on the IP address.
This was just a fix for my problem and I'm not real clear on what exactly
is happening to you.
Oh and in my <Directory /> (default directory) directives, I put all my
backhand weights to forward with and I'm backhanding 1000+ virtual
sites with no need to modify and of the <Virtualhost> sections. :)
Kyle Stone
Unix Systems Engineer
kstone@win.net
On Sat, 7 Oct 2000, Martin Hierling wrote:
> Hi,
>=20
> i get the module on work. but what i need ist not only 1 Group of Load
> Balanced Webservers. I perhabs need 2 or 3 on the same servers.
> www.foo.com
> www.bar.com
> www.mad.com
>=20
> Is it possible to build this groups with virthosts?
> Can anybody provide me with a config example or with "sorry man, that
> doesn=B4t work"?
>=20
> greetings Martin
>=20
> --=20
> ----------------------------------------------------------------
> How do you make Windows faster ? Throw it harder
> ----------------------------------------------------------------
> - Martin Hierling - mad@cc.fh-lippe.de - www.hierling.de
> ----------------------------------------------------------------
>=20
> _______________________________________________
> backhand-users mailing list
> backhand-users@lists.backhand.org
> http://lists.backhand.org/mailman/listinfo/backhand-users
>=20