Guest User

Untitled

a guest
Apr 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ## avec un seul mongrel/thin/..
  2.  
  3. $HTTP["host"] == "domaine.tld" {
  4. proxy.server = ( "" =>
  5. ( (
  6. "host" => "127.0.0.1",
  7. "port" => 3001
  8. ) )
  9. )
  10. }
  11.  
  12. ## avec plusieurs
  13.  
  14. $HTTP["host"] == "domaine.tld" {
  15. proxy.balance = "hash"
  16. proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 8090 ),
  17. ( "host" => "127.0.0.1", "port" => 8091 ),
  18. ( "host" => "127.0.0.1", "port" => 8092 ),
  19. ( "host" => "127.0.0.1", "port" => 8093 ),
  20. ( "host" => "127.0.0.1", "port" => 8094 ),
  21. ( "host" => "127.0.0.1", "port" => 8095 ),
  22. ( "host" => "127.0.0.1", "port" => 8096 ),
  23. ( "host" => "127.0.0.1", "port" => 8097 ),
  24. ( "host" => "127.0.0.1", "port" => 8098 ),
  25. ( "host" => "127.0.0.1", "port" => 8099 ) ) )
  26. }
Add Comment
Please, Sign In to add comment