Re: HAProxy Cookie/Host Forwarding

2010-12-10 Thread Anthony Saenz
We do have multiple production servers but not all of them host/have a copy of the same domains and files. Let's say we have abc.com/xyz.com and 123.net/890.net, the first set point to one server and the other set points to another. I know this isn't ideal but that's how I inherited it plus this is

Re: HAProxy Cookie/Host Forwarding

2010-12-10 Thread Bryan Talbot
I thought you said you have "multiple" servers but thousands of domains. In that case, just list the servers by IP address and the proxy will pass the Host header value as supplied by the client. You should probably avoid using names resolved using DNS anyway so that a DNS hickup doesn't effectiv

Re: HAProxy Cookie/Host Forwarding

2010-12-10 Thread Anthony Saenz
Well, it's not that it doesn't work but we have approximately 1200 domains (that we actively develop on) and it doesn't seem very logical to hardcode each domain in. I was wondering if there was a workaround for the lines below so instead of using example.com:80 using a variable such as $HOST:80 (w

Re: HAProxy Cookie/Host Forwarding

2010-12-10 Thread Bryan Talbot
I do something similar using a config that is pretty much like what you've shown. What doesn't work about the config you've shown? -Bryan On Fri, Dec 10, 2010 at 9:05 AM, Anthony Saenz wrote: > Hi, > > Don't mean to bug but did anyone get a chance to possibly look at this and > provide some a

Re: HAProxy Cookie/Host Forwarding

2010-12-10 Thread Anthony Saenz
Hi, Don't mean to bug but did anyone get a chance to possibly look at this and provide some assistance or does anyone know of alternative means to get this to work with cookie information? Thanks. On 12/8/10 3:43 PM, Anthony Saenz wrote: Hey, I was wondering if anyone could be of any assis

HAProxy Cookie/Host Forwarding

2010-12-08 Thread Anthony Saenz
Hey, I was wondering if anyone could be of any assistance? I'm trying to use HAProxy to forward based on cookie and host. As it stands, I want HAProxy to see if a cookie is set and if it is, forward to a development server and if it isn't just push out to production. The main issue being, we