实现lighttpd+tomcat

机器上安装了lighttpd,现在想试下与tomcat的一起工作。把所有的HTTP请求让tomcat去处理。

用到lighttpd的代理,lighttpd与tomcat比apache与tomcat要简单多。

在server.modules中添加"mod_proxy_backend_http”

$HTTP["url"] =~ ".do|.htm|.jsp|.action|/$"{
   proxy-core.backends = ( "127.0.0.1:8080" )
   proxy-core.protocol = "http"
}

然后将tomcat启动,测试OK。通过lighhtpd的代理,可以将http请求发送到tomcat了。

原文地址:https://www.cnblogs.com/glorey/p/3076997.html