]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- sample config and doc extracted from patch
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 12 Dec 2006 18:06:49 +0000 (18:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd-mod_extforward.conf -> 1.1

lighttpd-mod_extforward.conf [new file with mode: 0644]

diff --git a/lighttpd-mod_extforward.conf b/lighttpd-mod_extforward.conf
new file mode 100644 (file)
index 0000000..0ccb047
--- /dev/null
@@ -0,0 +1,42 @@
+# mod_extforward for lighttpd
+#
+# Documentation: http://trac.lighttpd.net/trac/wiki/Docs/ModExtForward
+
+server.modules += (
+       "mod_extforward"
+)
+
+# Trust proxy 10.0.0.232 and 10.0.0.232
+#extforward.forwarder = (
+#      "10.0.0.232" => "trust",
+#      "10.0.0.233" => "trust",
+#)
+
+# Trust all proxies  (NOT RECOMMENDED!)
+#extforward.forwarder = ( "all" => "trust")
+
+# Note that "all" has precedence over specific entries,
+# so "all except" setups will not work.
+
+# Note: The effect of this module is variable on $HTTP["remotip"] directives and
+#       other module's remote ip dependent actions.
+#  Things done by modules before we change the remoteip or after we reset it will match on the proxy's IP.
+#  Things done in between these two moments will match on the real client's IP.
+#  The moment things are done by a module depends on in which hook it does things and within the same hook
+#  on whether they are before/after us in the module loading order
+#  (order in the server.modules directive in the config file).
+#
+# Tested behaviours:
+#
+#  mod_access: Will match on the real client.
+#
+#  mod_accesslog:
+#   In order to see the "real" ip address in access log ,
+#   you'll have to load mod_extforward after mod_accesslog.
+#   like this:
+#
+#    server.modules  = (
+#       .....
+#       mod_accesslog,
+#       mod_extforward
+#    )
This page took 0.041579 seconds and 4 git commands to generate.