<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi there. I appreciate that you guys are all helping each other out. I am brand new to stunnel. <br><br>Currently,
I'm using stunnel to add https to a webserver that doesn't have ssl
setup; which works great. I prefer to do that instead of using the
webserver's builtin ssl feature.<br><br><br>CONFIGURATION:<br>Stunnel.conf includes (which adds ssl to incoming http traffic on port 443)<br>[https]<br>accept = 443<br>connect = 80<br><br>Also, incoming http:80 traffic can also come in; which would bypass stunnel, and go directly to the webserver as http. <br><br><br>OBJECTIVE:<br>I am trying to make it so when someone visits:<br><span><span><a target="_blank" href="http://mywebsite.com">http://mywebsite.com</a> (it forwards automatically to </span><a rel="nofollow" target="_blank" href="https://mywebsite.com">https://mywebsite.com</a>).</span><br><br>Normally, I could do this a few different ways (provided my webserver had ssl added to it natively in a normal way)<br>1. webserver URL Rewrite plugin<br>2. webserver redirect plugin<br><span>3: </span><meta http-equiv="refresh" content="0; url=<span><a rel="nofollow" target="_blank"
href="https://mywebsite.com">https://mywebsite.com</a></span>"><br><br>For
whatever reason, I'm having all sorts of weird
issues when trying the three methods above if I use stunnel for ssl
instead of using the webserver's builtin ssl. The first two methods
result in web browser redirect errors, the third method result in an
infinite loop reloading the https website.<br><br>Can someone please
tell me what extra accommodation I need to make considering that using
stunnel for https can complicate things.<br><br>I'm using IIS 7.5 as my
webserver. I've tried using the the URL rewrite 2.0 mod using the below
rule (which works for normal builtin ssl support in the webserver:<br><br><rule name="Redirect to HTTPS" stopProcessing="true"><br><match url="(.*)" /><br><conditions><add input="{HTTPS}" pattern="^OFF$" /><br></conditions><br><span>
</span><br></rule><br><br>I have also tried the "http redirect"
mod; which I can forward to any website except for the one I'm trying to
do. Both take me to the https equivalent and give a redirect error.<br><br>Could someone please be kind enough to tell me what I'm missing?<br><br>Thanks!<br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br></div>
</div></body></html>