]>
Commit | Line | Data |
---|---|---|
1efd0147 ER |
1 | # Let lighttpd act as a proxy server for special file types, hosts etc |
2 | # | |
34b8d937 | 3 | # Documentation: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModProxy |
a242e9d0 | 4 | |
7d3968ad ER |
5 | server.modules += ( |
6 | "mod_proxy" | |
7 | ) | |
693950e2 | 8 | |
a242e9d0 ER |
9 | ## Balance algorithm, possible values are: "hash", "round-robin" or "fair" (default) |
10 | # proxy.balance = "hash" | |
11 | ||
12 | ## Redirect all queries to files ending with ".php" to 192.168.0.101:80 | |
693950e2 | 13 | #proxy.server = ( |
a242e9d0 ER |
14 | # ".php" => (( |
15 | # "host" => "192.168.0.101", | |
16 | # "port" => 80 | |
17 | # )) | |
693950e2 ER |
18 | #) |
19 | ||
a242e9d0 ER |
20 | ## Redirect all connections on www.example.com to 10.0.0.1{0,1,2,3} |
21 | #$HTTP["host"] == "www.example.com" { | |
22 | # proxy.balance = "hash" | |
23 | # proxy.server = ( | |
24 | # "" => ( | |
25 | # ( "host" => "10.0.0.10" ), | |
26 | # ( "host" => "10.0.0.11" ), | |
27 | # ( "host" => "10.0.0.12" ), | |
28 | # ( "host" => "10.0.0.13" ), | |
29 | # ) | |
30 | # ) | |
31 | #} |