Browse Source

Correction apache

master
Teddy Cornaut 3 months ago
parent
commit
45a1d480c8
2 changed files with 8 additions and 4 deletions
  1. 2
    2
      preservice/00-idp
  2. 6
    2
      tmpl/mpm_event.conf

+ 2
- 2
preservice/00-idp View File

@@ -5,8 +5,8 @@
5 5
 
6 6
 if [ "$(CreoleGet activer_idp)" = 'oui' ];then
7 7
     # gestion des modes apache
8
-    ENMOD="ssl headers proxy_ajp mpm_worker"
9
-    DISMOD="mpm_event"
8
+    ENMOD="ssl headers proxy_ajp mpm_event"
9
+    DISMOD="mpm_worker"
10 10
     [ ! -z $DISMOD ] && CreoleRun "a2dismod $DISMOD >/dev/null"
11 11
     CreoleRun "a2enmod $ENMOD >/dev/null"
12 12
 fi

+ 6
- 2
tmpl/mpm_event.conf View File

@@ -14,8 +14,12 @@
14 14
     ThreadsPerChild          %%idpApacheThreadsPerChild
15 15
     MaxRequestWorkers        %%idpApacheMaxRequestWorkers
16 16
     MaxConnectionsPerChild   %%idpApacheMaxConnectionsPerChild
17
-    MaxKeepAliveRequests     %%idpApacheMaxKeepAliveRequests
18
-    KeepAliveTimeout         %%idpApacheKeepAliveTimeout
17
+    %if %%enableKeepAlive == 'oui'
18
+    MaxKeepAliveRequests     %%apacheMaxKeepAliveRequests
19
+    KeepAliveTimeout         %%apacheKeepAliveTimeout
20
+%else
21
+    KeepAlive Off
22
+%end if
19 23
 </IfModule>
20 24
 
21 25
 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Loading…
Cancel
Save