summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-04 17:10:35 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-04 17:10:35 -0400
commit49e9f0acdcd68bb9b7e4b30b41a95cb5b8c8b811 (patch)
treea23da77b6b702b9543de0e3dea4cfd59489fec63
parent77c2883da976872362780ba4f774a52f9dd07ad2 (diff)
downloadlighttpd1.4-49e9f0acdcd68bb9b7e4b30b41a95cb5b8c8b811.tar.gz
lighttpd1.4-49e9f0acdcd68bb9b7e4b30b41a95cb5b8c8b811.zip
[doc] highlight relevance of module load order (fixes #2946)
x-ref: "modules.conf order unhelpful (setenv vs. redirect)" https://redmine.lighttpd.net/issues/2946
-rw-r--r--doc/config/modules.conf14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/config/modules.conf b/doc/config/modules.conf
index fa9d6644..1e0d83f5 100644
--- a/doc/config/modules.conf
+++ b/doc/config/modules.conf
@@ -17,8 +17,6 @@
##
## Modules, which are pulled in via conf.d/*.conf
##
-## NOTE: the order of modules is important.
-##
## - mod_accesslog -> conf.d/access_log.conf
## - mod_compress -> conf.d/compress.conf
## - mod_status -> conf.d/status.conf
@@ -38,6 +36,14 @@
## - mod_secdownload -> conf.d/secdownload.conf
## - mod_expire -> conf.d/expire.conf
##
+## NOTE: The order of modules in server.modules is important.
+##
+## Modules which gate requests (e.g. mod_access, mod_auth) or modify
+## requests (e.g. mod_alias, mod_setenv) should be listed before
+## modules which complete requests (e.g. mod_redirect, mod_rewrite),
+## and which, in turn, should be listed before dynamic handlers
+## (e.g. mod_cgi, mod_fastcgi, mod_proxy, mod_scgi, ...)
+##
server.modules = (
"mod_access",
@@ -45,10 +51,10 @@ server.modules = (
# "mod_auth",
# "mod_authn_file",
# "mod_evasive",
-# "mod_redirect",
-# "mod_rewrite",
# "mod_setenv",
# "mod_usertrack",
+# "mod_redirect",
+# "mod_rewrite",
)
##