+ -
当前位置:首页 → 问答吧 → lighttpd 实现负载匀衡的问题

lighttpd 实现负载匀衡的问题

时间:2011-09-12

来源:互联网

我用lighttpd + 2个tomcat实现集群、负载均衡,同时实现ssl.

集群和ssl已经在tomcat配置好,访问地址和端口分别是
https://192.168.0.100:8443/test/
https://192.168.0.100:8444/test/

现在想用lighttpd实现负截均衡
如果不是跳转到https的话,lighttpd可以这样配置
 $HTTP["host"] == "https://192.168.0.100" {
  proxy.balance = "fair"
  proxy.server = ( "" => ( 
  ( "host" => "192.168.0.100", "port"=>8080 ),
  ( "host" => "192.168.0.100", "port"=>8081 )
) )
  }

但是如果跳转到https的话,那应该怎样配置,有没有同学了解的。
也就是我只要输入https://192.168.0.100/test lighttpd就会自动选择是访问https://192.168.0.100:8443/test/
还是https://192.168.0.100:8444/test/

作者: rblueboy   发布时间: 2011-09-12

自己顶一下

作者: rblueboy   发布时间: 2011-09-12

没人帮一下忙吗

作者: rblueboy   发布时间: 2011-09-12

不懂!来抢个沙发!

作者: keketian521   发布时间: 2011-09-12

热门下载

更多