When configuring fastcgi, if you use a configuration that doesnt match http://lighttpd.net/documentation/fastcgi.html lighty doesnt give any syntax errors or anything, but the load-balancing stops working (it only uses the first listed host in the configuration)
eg when i use:
fastcgi.server = ( ".fcgi" =>
( "turbine-01-7000" => ( "host" => "127.0.0.1", "port" => 7000 ) ),
( "turbine-01-7001" => ( "host" => "127.0.0.1", "port" => 7001 ) )
)
according to the config, the "turbine-01-700x =>" entries shouldn't be there, but it still (sort of) works, just ignoring the port 7001 entry. When it is removed:
fastcgi.server = ( ".fcgi" =>
( ( "host" => "127.0.0.1", "port" => 7000 ),
( "host" => "127.0.0.1", "port" => 7001 ) )
)
load-balancing starts working properly, and lighty picks up on the port 7001 entry. It's not a major problem, but can trip people up and is difficult to track down...