@Kal wrote:
Hi,
I use Haproxy (1.6 on Ubuntu 12.04) as a SSL termination proxy in front of a Varnish server. Varnish listen several IPs, for virtual host purpose. So I want Haproxy to listen all IPs, and pass each request to Varnish with the same IP.
The configuration could be :
frontend www-https1 bind 1.1.1.1:443 ssl strict-sni crt /var/ssl/ default_backend www-backend1 backend www-backend1 server www-1 1.1.1.1:80 check frontend www-https2 bind 2.2.2.2:443 ssl strict-sni crt /var/ssl/ default_backend www-backend2 backend www-backend2 server www-1 2.2.2.2:80 checketc.
But I would prefer a configuration like this :
frontend www-https bind :443 ssl strict-sni crt /var/ssl/pem/ default_backend www-backend backend www-backend server www-1 ${frontend_ip}:80 checkI saw ${frontend_ip} in similar topics, but it doesn't seem to work... My global configuration works because if a put an IP instead of ${frontend_ip}, it works.
Any idea ?
Thanks,
Posts: 7
Participants: 2