【问题标题】:Reverse Proxy lighttpd https not working反向代理 lighttpd https 不起作用
【发布时间】:2016-02-03 07:43:21
【问题描述】:

我的服务器上运行了多个 Tomcat。我使用 lighttpd 反向代理不同域的传入请求。到目前为止,我只使用了没有 https 的 http,这个配置对我有用:

$HTTP["host"] == "my.domain.com" {
    proxy.server  = ( "" => ( (
            "host" => "127.0.0.1",
            "port" => 8080
    ) ) )
}

但是当我尝试相同并且只将端口更改为 https 端口时,我只看到一个空白页面。我需要做什么才能将流量重定向到使用 https 的 Tomcat。

【问题讨论】:

    标签: tomcat https proxy lighttpd forwarding


    【解决方案1】:

    您需要使用$SERVER["socket"] 而不是$HTTP["host"] 例如

    $SERVER["socket"] == "my.domain.com:443" {
        proxy.server  = ( "" => ( (
            "host" => "127.0.0.1",
            "port" => 8080
        ) ) )
    }
    

    【讨论】:

      猜你喜欢
      • 2011-06-19
      • 2018-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-14
      • 2017-10-15
      • 2021-12-23
      相关资源
      最近更新 更多