[stunnel-users] Failed to redirect http to https

Doris Hongmei doris.hongmei at ericsson.com
Mon Jun 27 06:02:24 CEST 2016


Hi Support,
I setup stunnel to a web server with apache
Configuration like below,
--- /usr/local/etc/stunnel/stunnel.conf ----------
; It is recommended to drop root privileges if stunnel is started by root
setuid = nobody
setgid = nobody

; TLS front-end to a web server
[https]
accept  = 443
connect = 127.0.0.1:80
cert = /usr/local/etc/stunnel/stunnel.pem

--- end of /usr/local/etc/stunnel/stunnel.conf ----------

After stunnel started,  https://xxx/  is working,  http://xxx/ is also still working , which doesn't redirect to  https://xxx automatically.
As my understanding, all the connections from http should redirect to https through stunnel, right?

What steps did I miss? I need your help.

Thanks.


[Ericsson]<http://www.ericsson.com/>
DORIS HONGMEI
Software Configuration Mgmt Engineer
BUSS SA OSS&BSS BL CPM DU SEP GZ RelGrp

Ericsson
5&6F, No 44-46 Jianzhong Road
510630,Guangzhou,Tian He Software Park, China
Mobile +8613922114721
Office +862085117729
doris.hongmei at ericsson.com
www.ericsson.com


[http://www.ericsson.com/current_campaign]<http://www.ericsson.com/current_campaign>

Legal entity: Ericsson, registered office in CGC . This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer<http://www.ericsson.com/email_disclaimer>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20160627/06b5542c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2367 bytes
Desc: image001.gif
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20160627/06b5542c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 23812 bytes
Desc: image002.gif
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20160627/06b5542c/attachment-0001.gif>


More information about the stunnel-users mailing list