Load balancing multiple virtual hosts on 1 IP

Mel fbsd.questions at rachie.is-a-geek.net
Mon Feb 2 10:22:30 PST 2009


On Sunday 01 February 2009 19:33:38 Marc G. Fournier wrote:
> Thank you for all the responses ... turns out the solution was simplier ...
> I tried the various solutions presented, and each of them did the same
> thing ...
>
> The setup I have, I'm using csync2 to maintain the file systems on each
> backend, and in order to simplify that, I'm using:
>
> <VirtualHost *:80>
>
> instead of
>
> <VirtualHost IP:80>
>
> which works fine ... *but*, something gets confused when you mix-n-match
> the above ... its either all of one or the other, but not both ... once I
> fixed my config files, the pages now load consistently ...

I'm assuming you also have:
NameVirtualHost *

http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost

	Addr can be:
	- The character *, which is used only in combination with
	  NameVirtualHost * to match all IP addresses;

-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.


More information about the freebsd-questions mailing list