blob: 7285bdd204b7fd0c4ad5fb67a4f86daf47ca0bcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/"
server.pid-file = env.SRCDIR + "/tmp/lighttpd/lighttpd-proxy.pid"
server.tag = "proxy"
include "default.conf"
## 127.0.0.1 and 127.0.0.2 are the same host
proxy.server = (
"" => (( "host" => "127.0.0.1",
"port" => 2050 ),
( "host" => "127.0.0.2",
"port" => 2051 )
))
$HTTP["url"] =~ "^/balance-rr/" {
proxy.balance = "round-robin"
}
$HTTP["url"] =~ "^/balance-hash/" {
proxy.balance = "hash"
}
$HTTP["url"] =~ "^/balance-fair/" {
proxy.balance = "fair"
}
|