stunnel https重定向到http
问题描述:
我有一个侦听端口8081的Web服务(这是在Mono上运行的ServiceStack REST Web服务,如果有帮助的话).我正在尝试使用stunnel保护它,但是问题是,一旦我连接到 https://ip ,它就会被重定向到
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
答
您的通道配置对我有用.
Your stunnel config works for me.
听起来您的网络服务器可能正在发送403重定向,这是您不想要的.
It sounds like your webserver is likely sending a 403 redirect, which you do not want.