Thanks Lukas. But why does it say this here for "server" in the man?
Address “0.0.0.0″ or “*” has a special meaning.
It indicates that the connection will be forwarded to the same IP
address as the one from the client connection. This is useful in
transparent proxy architectures where the client’s connection is
intercepted and haproxy must forward to the original destination
address.
Isn't this exactly what I intend to do?
So there is no way to "forward" all subdomains under "speedtest.net"
or any other domain name at all? I know squid or SNIProxy do this
without a problem, but I prefer HAProxy as it is very stable and the
web interface is just amazing.
All I need to do is actually put the requested domain next to server
"variable". Eg
server <variablename> { host } or server <variablename> *
but none of this works
Thanks
On 5 March 2014 15:21, Lukas Tribus <[email protected]> wrote:
> Hi,
>
>
>
>> backend b_catchall
>> log global
>> mode http
>> option httplog
>> option http-server-close
>>
>> #--- speedtest
>> use-server www.speedtest.net if { hdr_dom(host) -i speedtest }
>> server www.speedtest.net *:80
>
> This is an unsupported configuration, you cannot specify an asterisk
> as address.
>
> This particular configuration makes HAProxy open <maxconn> connections,
> which is 20000 in your case, which saturates CPU and RAM until the
> oom-killer intervenes.
>
> The fix in haproxy will be to refuse to start when using this kind of
> configuration (there is probably another bug here as well, but that
> doesn't mean this is a supported configuration).
>
>
> Note that HAProxy is not a forward proxy and it will probably never be
> one. Take a look at squid and those kind of proxies.
>
>
>
> Regards,
>
> Lukas