]>
Commit | Line | Data |
---|---|---|
ed989a88 ER |
1 | # Transparent socket proxy (available since lighttpd 1.4.51) |
2 | # | |
3 | # mod_sockproxy is a transparent socket proxy. For a given $SERVER["socket"] | |
4 | # config, connections will be forwarded to backend(s) without any | |
5 | # interpretation of the protocol. | |
6 | # | |
7 | # Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModSockProxy | |
8 | ||
9 | server.modules += ( | |
10 | "mod_sockproxy" | |
11 | ) | |
12 | ||
13 | # debug level (value between 0 and 65535) | |
14 | #sockproxy.debug = 0 | |
15 | ||
16 | # sockproxy.balance: | |
17 | # might be one of 'fair' (default), 'hash', 'round-robin' or 'sticky'. | |
18 | # - 'fair' or 'least-connection' is the normal load-based, passive balancing. | |
19 | # - 'round-robin' chooses another host for each request. | |
20 | # - 'hash' is generating a hash over the request-uri and makes sure that the | |
21 | # same request URI is sent to always the same host. That can increase the | |
22 | # performance of the backend servers a lot due to higher cache-locality. | |
23 | # - 'sticky' (since 1.4.44) sends requests from the same (client) IP to the same backend. | |
24 | #sockproxy.balance = "fair" | |
25 | ||
26 | # sockproxy.server: | |
27 | # backend server definition(s) for hosts to which to send requests; options for | |
28 | # each backend host. Every file-extension can have its own handler. | |
29 | # Load-balancing is done by specifying multiple hosts for the same extension. | |
30 | #sockproxy.server = ( | |
31 | # "" => ( | |
32 | # ( | |
33 | # "host" => "10.0.0.242", | |
34 | # "port" => 10000, | |
35 | # ), | |
36 | # ), | |
37 | #) |