Tomcat 反向代理lighttpd https不工作

Tomcat 反向代理lighttpd https不工作,tomcat,https,proxy,lighttpd,forwarding,Tomcat,Https,Proxy,Lighttpd,Forwarding,我的服务器上运行了多个Tomcat。我使用lighttpd反向代理不同域的传入请求。到目前为止,我只使用了没有https的http,并且这个配置对我有效: $HTTP["host"] == "my.domain.com" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8080 ) ) ) } 但当我尝试同样的方法,只将端口更改为htt

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

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

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

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

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