X-Git-Url: https://git.tld-linux.org/?p=packages%2Flighttpd.git;a=blobdiff_plain;f=mod_sockproxy.conf;fp=mod_sockproxy.conf;h=4a84e9e08932375abbde5f853c9c4a25a89cf8d9;hp=0000000000000000000000000000000000000000;hb=c5ecec4df0df09459e51e9c2ecc5d44872e62cbb;hpb=26fea3db2dc643f86c9df1999b23b430571e17f5 diff --git a/mod_sockproxy.conf b/mod_sockproxy.conf new file mode 100644 index 0000000..4a84e9e --- /dev/null +++ b/mod_sockproxy.conf @@ -0,0 +1,37 @@ +# Transparent socket proxy (available since lighttpd 1.4.51) +# +# mod_sockproxy is a transparent socket proxy. For a given $SERVER["socket"] +# config, connections will be forwarded to backend(s) without any +# interpretation of the protocol. +# +# Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModSockProxy + +server.modules += ( + "mod_sockproxy" +) + +# debug level (value between 0 and 65535) +#sockproxy.debug = 0 + +# sockproxy.balance: +# might be one of 'fair' (default), 'hash', 'round-robin' or 'sticky'. +# - 'fair' or 'least-connection' is the normal load-based, passive balancing. +# - 'round-robin' chooses another host for each request. +# - 'hash' is generating a hash over the request-uri and makes sure that the +# same request URI is sent to always the same host. That can increase the +# performance of the backend servers a lot due to higher cache-locality. +# - 'sticky' (since 1.4.44) sends requests from the same (client) IP to the same backend. +#sockproxy.balance = "fair" + +# sockproxy.server: +# backend server definition(s) for hosts to which to send requests; options for +# each backend host. Every file-extension can have its own handler. +# Load-balancing is done by specifying multiple hosts for the same extension. +#sockproxy.server = ( +# "" => ( +# ( +# "host" => "10.0.0.242", +# "port" => 10000, +# ), +# ), +#)