修改lighttpd的配置
# vi /usr/local/lighttpd-1.4.19/lighttpd.conf
去掉mod_proxy注釋
server.modules = (
#...
# "mod_proxy",
#...
)
#...
# "mod_proxy",
#...
)
去掉proxy.server注釋
proxy.server = ( ".jsp" =>
( "localhost" =>
(
"host" => "192.168.0.60",
"port" => 8080
)
)
)
( "localhost" =>
(
"host" => "192.168.0.60",
"port" => 8080
)
)
)
重啟lighttpd,然后http://192.168.0.60/index.jsp就可以看到tomcat的頁面了。