另外在这个配置文件末位加上:
proxy.debug = 0 proxy.balance = "fair" proxy.server = ( "/" => ( ( "host" => "127.0.0.1", "port" => 4001 ), ( "host" => "127.0.0.1", "port" => 4002 ) ) )
这里的port就是Mongrel server的port,启动Lighttpd使用命令:
c:lighttpdsbinlighttpd.exe -D -f c:lighttpdetclighttpd.conf
通过http://localhost:81/ 就可以成功访问
(编辑:aniston)
|