]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-mod_proxy.conf
- add (reviewed) mod_auth ip logging patch from devel-en ml
[packages/lighttpd.git] / lighttpd-mod_proxy.conf
index 52b11db4d48c074b3f5af6b2f6dd2d4f4ca6b13c..17abd65dc70041baea82e4eaf997a9548f0a2ee5 100644 (file)
@@ -1,15 +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"
 )
 
-#### proxy module
-## read proxy.txt for more info
+## 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" => (
-#              "localhost" => (
-#                      "host" => "192.168.0.101",
-#                      "port" => 80,
-#              )
-#      )
+#      ".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" ),
+#              ) 
+#      )
+#}
This page took 0.059704 seconds and 4 git commands to generate.