Просмотр исходного кода

aggiornati i timeout di apache (ridotti)

root 2 недель назад
Родитель
Сommit
00624d8f4a
3 измененных файлов с 39 добавлено и 15 удалено
  1. 3 0
      apache2/apache2.yml
  2. 21 0
      apache2/timeout.patch
  3. 15 15
      docker-compose.yml

+ 3 - 0
apache2/apache2.yml

@@ -15,6 +15,9 @@ RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.g
 RUN apt-get update
 COPY directory.patch /etc/apache2/directory.patch
 RUN patch /etc/apache2/apache2.conf < /etc/apache2/directory.patch
+COPY timeout.patch /etc/apache2/timeout.patch
+RUN patch /etc/apache2/apache2.conf /etc/apache2/timeout.patch
+
 
 
 

+ 21 - 0
apache2/timeout.patch

@@ -0,0 +1,21 @@
+--- apache2.conf        2026-04-20 11:59:50.585163511 +0200
++++ apache2.ori 2026-06-04 16:11:13.649045334 +0200
+@@ -89,7 +89,7 @@
+ #
+ # Timeout: The number of seconds before receives and sends time out.
+ #
+-Timeout 300
++Timeout 10
+ 
+ #
+ # KeepAlive: Whether or not to allow persistent connections (more than
+@@ -102,7 +102,7 @@
+ # during a persistent connection. Set to 0 to allow an unlimited amount.
+ # We recommend you leave this number high, for maximum performance.
+ #
+-MaxKeepAliveRequests 100
++MaxKeepAliveRequests 50
+ 
+ #
+ # KeepAliveTimeout: Number of seconds to wait for the next request from the
+

+ 15 - 15
docker-compose.yml

@@ -31,20 +31,20 @@ services:
       context: apache2
       dockerfile: apache2.yml
 
-  php83-net012:
-    image: php83
+  php56-net012:
+    image: php56
     depends_on:
       - apache2
     build:
       context: php
       dockerfile: php.yml
       args:
-        PHP_VERSION: 8.3
+        PHP_VERSION: 5.6
     environment:
       TZ: Europe/Rome
     ports:
-      - 10083:80
-      - 10483:443
+      - 10079:80
+      - 10479:443
     volumes:
       - net012:/home/httpd
     entrypoint: ['/bin/bash','/root/run.sh']
@@ -69,7 +69,7 @@ services:
     entrypoint: ['/bin/bash','/root/run.sh']
     restart: unless-stopped
 
-  php83-net060:
+  php83-net012:
     image: php83
     depends_on:
       - apache2
@@ -81,29 +81,29 @@ services:
     environment:
       TZ: Europe/Rome
     ports:
-      - 11083:80
-      - 11483:443
+      - 10083:80
+      - 10483:443
     volumes:
-      - net060:/home/httpd
+      - net012:/home/httpd
     entrypoint: ['/bin/bash','/root/run.sh']
     restart: unless-stopped
 
-  php81-net060:
-    image: php81
+  php84-net012:
+    image: php84
     depends_on:
       - apache2
     build:
       context: php
       dockerfile: php.yml
       args:
-        PHP_VERSION: 8.1
+        PHP_VERSION: 8.4
     environment:
       TZ: Europe/Rome
     ports:
-      - 11081:80
-      - 11481:443
+      - 10084:80
+      - 10484:443
     volumes:
-      - net060:/home/httpd
+      - net012:/home/httpd
     entrypoint: ['/bin/bash','/root/run.sh']
     restart: unless-stopped