Thanks for your help but I'm still alittle confused at configuring HAProxy. This is the configuration file I have so far but am not quite sure if this is correct for what I want to achieve. Here it is:
log loghost local0
log localhost local0 err
acl url_static /ciscopca
acl url_static /ccmuser
use_backend ciscopca if url_ciscopca extension_ciscopca
use_backend ccmuser if url_ccmuser extension_ccmuser
server ciscopca 10.70.5.31:80 maxconn 8 check
server ccmuser 10.70.5.11:443 maxconn 8 check port 80
Does still appear to be correct? Any help would be greatly appreciated!
From: Willy Tarreau [mailto:w#1wt.eu]
Sent: Sunday, August 10, 2008 4:28 PM
To: Bannerman, Israel
Subject: Re: Need Help with Configuration File
On Fri, Aug 08, 2008 at 02:46:57PM -0400, Bannerman, Israel wrote:
> Hello all,
> I recently install HAProxy on a Debian Lenny box. The ip to the
> HAProxy box is 10.75.1.25. I have two urls that I want to use with
> I want to use HAProxy to create an url to point to these sites, such
> What would the configuration file look like for this configuration
> (webfarm & etc)?
You should take a look at the file named "acl-content-sw.cfg" in the "examples" directory in haproxy sources. What you're looking for is called "content switching". Based on an ACL checking for a word in the URL (read doc/configuration.txt), you will be able to select one backend or another one, using the "use_backend" statement. Note that right now, you still have to define two backends with one server in each. Later you will be able to use "use_server" to force the use of a server within a backend. It will provide for more simple configurations.
BTW, you might be interested in joining the mailing list (the URL and procedure are at the bottom of haproxy's main page).
CONFIDENTIALITY NOTICE: This message is intended to be viewed only by the listed recipient(s). It may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any dissemination, distribution or copying of this message is strictly prohibited without our prior permission. If you are not the intended recipient, or if you have received this communication in error, please notify us immediately by return e-mail and delete the original message and any copies.
This archive was generated by hypermail 2.2.0 : 2008/08/19 23:15 CEST