【问题标题】:stunnel https gets redirected to httpstunnel https 被重定向到 http
【发布时间】:2011-12-08 20:39:36
【问题描述】:

我有一个在端口 8081 上侦听的 Web 服务(如果有帮助,它是一个在单声道上运行的 ServiceStack REST Web 服务)。我正在尝试使用 stunnel 保护它,但问题是,一旦我连接到 https://ip,它就会被重定向到 http://ip:8081,这对我来说没有意义。 有人可以指点我一个方向吗?我的 stunnel 配置文件如下:

cert = stunnel.pem

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

setuid = nobody
setgid = nobody

foreground = yes

[https] 
accept = 443 
connect = 8081

【问题讨论】:

    标签: linux mono servicestack stunnel


    【解决方案1】:

    您的 stunnel 配置对我有用。

    听起来您的网络服务器可能正在发送您不希望的 403 重定向。

    【讨论】:

      猜你喜欢
      • 2016-04-16
      • 2011-09-06
      • 2018-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-12
      • 1970-01-01
      相关资源
      最近更新 更多