summary refs log tree commit homepage
path: root/examples/reverse_proxy.ru
blob: fcb9e74ef75d337cb5401437713023491094eb66 (plain)
1
2
3
4
5
6
7
8
9
# see Rainbows::ReverseProxy RDoc
cfg = {
  :upstreams => [
    "/tmp/.r.sock",
    "http://bogomips.org/",
    [ "http://10.6.6.6:666/", { :weight => 666 } ],
  ]
}
run Rainbows::ReverseProxy.new(cfg)