Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Backend IP based on frontend IP

$
0
0

@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 check

etc.

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 check

I 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

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>