On Fri, Feb 21, 2014 at 09:23:16AM -0800, Geoff Bucar wrote:
> Hi Willy,
> 
> That worked perfectly.  The only changes I had to make were using
> 'use-server' instead of 'use_server' and I only used the statements with
> rules, not the 'other' server.

indeed.

> I also found a typo in the documentation here:
> http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-use-server
> 
> # intercept incoming TLS requests based on the SNI field
> use-server www if { req_ssl_sni -i www.example.com }
> server     www 192.168.0.1:443 weight 0
> use-server mail if { req_ssl_sni -i mail.example.com }
> server     mail 192.168.0.1:587 weight 0
> use-server imap if { req_ssl_sni -i imap.example.com }
> server     mail 192.168.0.1:993 weight 0
> # all the rest is forwarded to this server
> server  default 192.168.0.2:443 check
> 
> The second server should probably be named 'imap' not mail again.

Yes you're right. Feel free to send a patch for this, I'll happily merge it.

Thanks,
Willy


Reply via email to