stunnel https gets redirected to http

扶醉桌前 提交于 2019-12-10 21:21:35

问题


I have a Web service listening on port 8081 (it's a ServiceStack REST Web Service running on mono, if that helps). I am trying to secure it using stunnel, but the problem is as soon as I connect to https://ip, it gets redirected to http://ip:8081, which doesn't make sense to me. Could somebody point me in a direction? My stunnel config file follows:

cert = stunnel.pem

chroot = /usr/local/var/run/stunnel/
pid = /stunnel.pid

setuid = nobody
setgid = nobody

foreground = yes

[https] 
accept = 443 
connect = 8081

回答1:


Your stunnel config works for me.

It sounds like your webserver is likely sending a 403 redirect, which you do not want.



来源:https://stackoverflow.com/questions/8437399/stunnel-https-gets-redirected-to-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!