I'm trying to use stunnel and haproxy to sit in front a web application that is
completely http and running on IIS and I am experiencing a bit of a quirk. I
more less took the exact config from haproxy's architecture.txt file except
where I have marked changes. I can use the https:// and connect to my app's
home page and whenever I hover over all of the links they show
https://mysite/somepage but about 3/4 of the time whenever I click on one of
the links I am returned an http:// address with a blank page. Any thoughts?
cert=/etc/stunnel/stunnel.pem
setuid=stunnel
setgid=proxy
socket=l:TCP_NODELAY=1
socket=r:TCP_NODELAY=1
accept=192.168.1.1:443 *Here I am using a Public ip address
xxx.xxx.xxx.xxx:443
connect=192.168.1.1:80 *My internal is a 10.x.x.x:80
xforwardedfor=yes
Config on haproxy (LB1) :
-------------------------
listen 192.168.1.1:80 *My internal 10.x.x.x:80
mode http
balance roundrobin
option forwardfor except 192.168.1.1 *My 10
cookie SERVERID insert indirect nocache
option httpchk HEAD /index.html HTTP/1.0
server webA 192.168.1.11:80 cookie A check * My 10. web servers
server webB 192.168.1.12:80 cookie B check
server webC 192.168.1.13:80 cookie C check
server webD 192.168.1.14:80 cookie D check
---
posted at http://www.serverphorums.com
http://www.serverphorums.com/read.php?10,174988,174988#msg-174988