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:
global
log loghost local0
log localhost local0 err
maxconn 250
uid 71
gid 71
chroot /var/empty
pidfile /var/run/haproxy.pid
daemon
quiet
frontend cisco
acl url_static /ciscopca
acl url_static /ccmuser
use_backend ciscopca if url_ciscopca extension_ciscopca
use_backend ccmuser if url_ccmuser extension_ccmuser
backend ciscopca
mode http
server ciscopca 10.70.5.31:80 maxconn 8 check
backend ccmuser
mode tcp
server ccmuser 10.70.5.11:443 maxconn 8 check port 80
Does still appear to be correct? Any help would be greatly appreciated!
Thanks,
-Israel Bannerman
-----Original Message-----
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
Hello,
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
HAProxy:
>
>
>
>
>
>
>
> I want to use HAProxy to create an url to point to these sites, such
as:
>
>
>
> https://10.70.5.11/ccmuser - will respond to http://haproxy/ccmuser
>
>
>
> and
>
>
>
> http://10.70.5.31/ciscopca - will respond to http://haproxy/ciscopca
>
>
>
> 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).
Regards,
Willy
Israel Bannerman
"Network Engineer"
Tel. 973-404-1128
israel.bannerman#york-claims.com
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