X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=mod_proxy.conf;fp=mod_proxy.conf;h=db6102194aa725715f11f92809ce0dfdc2f6d65a;hb=8239b3691d1ae536833b6d53a2efd289956ccbcd;hp=0000000000000000000000000000000000000000;hpb=2bc378a1b82f8e82ab66bd2a656282134a6d05e0;p=packages%2Flighttpd.git diff --git a/mod_proxy.conf b/mod_proxy.conf new file mode 100644 index 0000000..db61021 --- /dev/null +++ b/mod_proxy.conf @@ -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" ), +# ) +# ) +#}