Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## avec un seul mongrel/thin/..
- $HTTP["host"] == "domaine.tld" {
- proxy.server = ( "" =>
- ( (
- "host" => "127.0.0.1",
- "port" => 3001
- ) )
- )
- }
- ## avec plusieurs
- $HTTP["host"] == "domaine.tld" {
- proxy.balance = "hash"
- proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8090 ),
- ( "host" => "127.0.0.1", "port" => 8091 ),
- ( "host" => "127.0.0.1", "port" => 8092 ),
- ( "host" => "127.0.0.1", "port" => 8093 ),
- ( "host" => "127.0.0.1", "port" => 8094 ),
- ( "host" => "127.0.0.1", "port" => 8095 ),
- ( "host" => "127.0.0.1", "port" => 8096 ),
- ( "host" => "127.0.0.1", "port" => 8097 ),
- ( "host" => "127.0.0.1", "port" => 8098 ),
- ( "host" => "127.0.0.1", "port" => 8099 ) ) )
- }
Add Comment
Please, Sign In to add comment