On Fri, Dec 4, 2015 at 5:16 AM, Milos Zupancic <[email protected]> wrote:
> Hi, > > I am looking for a solution on how to setup HaProxy and Tomcat with SSL > termination + passing client certificate to the backend tomcat. > > > backend c-https > mode http > balance roundrobin > cookie SERVERID insert nocache > server ljvfep4 192.168.0.10:20443 check inter 2000 rise 2 fall 2 > server ljvfep3 192.168.0.11:20443 check inter 2000 rise 2 fall 2 > > > This would give me a 502 bad gateway error. If i access the tomcat > directly all works as expected. > And suggestions ? > > >From these port numbers and your statement about "Tomcat with SSL" it seems like you're expecting an SSL connection from haproxy to tomcat. If that's the case, you'll need to add the appropriate ssl options to the server lines too. https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#ssl (Server and default-server options) -Bryan

