From 3ad8fac5a25b549bd28d5bc5c4f461a52f109c6a Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 17 Oct 2012 15:17:48 +0200 Subject: [PATCH] apache-httpd: Dynamically load MPM module in v2.4. Now, MPMs can be loaded at runtime and it's no longer required to compile in one of the MPM modules statically. So, if version is >= 2.4, load the MPM module corresponding to the multiProcessingModule value of the service module. For details, please see: http://httpd.apache.org/docs/2.4/mpm.html Signed-off-by: aszlig --- modules/services/web-servers/apache-httpd/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/web-servers/apache-httpd/default.nix b/modules/services/web-servers/apache-httpd/default.nix index 4a5362436b0..b70ed3933aa 100644 --- a/modules/services/web-servers/apache-httpd/default.nix +++ b/modules/services/web-servers/apache-httpd/default.nix @@ -114,6 +114,7 @@ let "vhost_alias" "negotiation" "dir" "imagemap" "actions" "speling" "userdir" "alias" "rewrite" "proxy" "proxy_http" ] + ++ optional (!versionOlder httpd.version "2.4") "mpm_${mainCfg.multiProcessingModule}" ++ (if mainCfg.multiProcessingModule == "prefork" then [ "cgi" ] else [ "cgid" ]) ++ optional enableSSL "ssl" ++ extraApacheModules;