Hi,<div><br></div><div> I want to setup the following architecture : </div><div><br></div><div>stunnel ---> haproxy --> 2 webserver.</div><div><br></div><div>I run severa virtual host on the 2 webservers, and a subset of them needs https.</div>
<div><br></div><div>I can allocate several IP address for the host that run stunnel.</div><div><br></div><div>How do I configure a single stunnel process to have a certificate per IP for the port https?</div><div><br></div>
<div>I tryed to add several section like the following : </div><div><br></div><div><div>[<a href="http://mansonthomas.com">mansonthomas.com</a>]</div><div>cert = /etc/stunnel/sites/<a href="http://mansonthomas.com/mansonthomas.com.crt">mansonthomas.com/mansonthomas.com.crt</a></div>
<div>accept = <a href="http://88.190.17.222:443">88.190.17.222:443</a></div><div>connect = <a href="http://127.0.0.1:82">127.0.0.1:82</a></div><div><br></div><div>xforwardedfor = yes</div><div>TIMEOUTclose = 0</div>
</div><div><br></div><div><br></div><div>So the question is : Is it possible ? </div><div>do you have a sample configuration file to share for this use case?</div><div><br></div><div>Thanks,</div><div>Thomas.</div>