Lowered CGI scripts timeouts.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 29 May 2025 22:17:18 +0300
changeset 43 6679199ee208
parent 42 a9e95c9c0f4d
child 44 a6779754c20c
Lowered CGI scripts timeouts.
deb/apache-register-hg.bash
--- a/deb/apache-register-hg.bash	Wed May 28 00:24:42 2025 +0300
+++ b/deb/apache-register-hg.bash	Thu May 29 22:17:18 2025 +0300
@@ -65,6 +65,12 @@
         Require all granted
         AllowOverride None
         AddHandler cgi-script .cgi
+        <IfModule mod_cgi.c>
+          CGIScriptTimeout 1s
+        </IfModule>
+        <IfModule mod_cgid.c>
+          CGIDScriptTimeout 1s
+        </IfModule>
     </Directory>
 </VirtualHost>
 
@@ -84,11 +90,18 @@
         Require all granted
         AllowOverride None
         AddHandler cgi-script .cgi
+        <IfModule mod_cgi.c>
+          CGIScriptTimeout 1s
+        </IfModule>
+        <IfModule mod_cgid.c>
+          CGIDScriptTimeout 1s
+        </IfModule>
     </Directory>
   </VirtualHost>
 </IfModule>
 EOF
 
 a2ensite hg
+a2enmod cgid
 a2enmod headers
 service apache2 reload