1. 实现目标: http://mongrel.rubyforge.org/docs/lighttpd.html

2.Lighttpd 配置
server.modules = ( "mod_rewrite", "mod_redirect", “mod_access”, “mod_accesslog”, “mod_compress”, “mod_proxy”) $HTTP[”url”] =~ “^/myapp1/” { proxy.balance = “fair” proxy.server = (”" => ( (”host” => “127.0.0.1″,”port” => 4000), (”host” => “192.168.0.60″,”port” => 3000) )) } $HTTP[”url”] =~ “^/myapp2/” { proxy.palance = “fair” proxy.server = (”" => ( (”host” => “127.0.0.1″,”port” => 4001), (”host” => “192.168.0.60″,”port” => 3001) )) }
(编辑:anistono)
|