From 2b3c3d0e321e67f7e187254a2c26147c8c57bacf Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Thu, 6 Nov 2014 21:58:26 +0100 Subject: [PATCH] Fixes to Apache 2.4 configuration --- nixos/modules/services/web-servers/apache-httpd/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix index 71fb58c3320..1f0729c1b71 100644 --- a/nixos/modules/services/web-servers/apache-httpd/default.nix +++ b/nixos/modules/services/web-servers/apache-httpd/default.nix @@ -111,6 +111,7 @@ let "unixd" "cache" "cache_disk" "slotmem_shm" + "socache_shmcb" ] ++ (if mainCfg.multiProcessingModule == "prefork" then [ "cgi" ] else [ "cgid" ]) ++ optional enableSSL "ssl" @@ -162,9 +163,9 @@ let sslConf = '' - SSLSessionCache shm:${mainCfg.stateDir}/ssl_scache(512000) + SSLSessionCache ${if version24 then "shmcb" else "shm"}:${mainCfg.stateDir}/ssl_scache(512000) - SSLMutex posixsem + ${if version24 then "Mutex" else "SSLMutex"} posixsem SSLRandomSeed startup builtin SSLRandomSeed connect builtin