]> TLD Linux GIT Repositories - packages/lighttpd.git/blobdiff - mod_proxy.conf
- merged 1.4.48 from PLD, TLDized
[packages/lighttpd.git] / mod_proxy.conf
diff --git a/mod_proxy.conf b/mod_proxy.conf
new file mode 100644 (file)
index 0000000..db61021
--- /dev/null
@@ -0,0 +1,31 @@
+# Let lighttpd act as a proxy server for special file types, hosts etc
+#
+# Documentation: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy
+
+server.modules += (
+       "mod_proxy"
+)
+
+## Balance algorithm, possible values are: "hash", "round-robin" or "fair" (default)
+# proxy.balance = "hash"
+
+## Redirect all queries to files ending with ".php" to 192.168.0.101:80
+#proxy.server = (
+#      ".php" => ((
+#              "host" => "192.168.0.101",
+#              "port" => 80
+#      ))
+#)
+
+## Redirect all connections on www.example.com to 10.0.0.1{0,1,2,3}
+#$HTTP["host"] == "www.example.com" {
+#      proxy.balance = "hash"
+#      proxy.server = (
+#              "" => (
+#                      ( "host" => "10.0.0.10" ),
+#                      ( "host" => "10.0.0.11" ),
+#                      ( "host" => "10.0.0.12" ),
+#                      ( "host" => "10.0.0.13" ),
+#              ) 
+#      )
+#}