diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 755a161c..e0e32bef 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -48,6 +48,7 @@ RUN set -ex; \ -e 's/^#\(LoadModule .*mod_alias.so\)/\1/' \ -e 's/^#\(LoadModule .*mod_mpm_event.so\)/\1/' \ -e 's/^#\(LoadModule .*mod_brotli.so\)/\1/' \ + -e 's/^#\(LoadModule .*mod_reqtimeout.so\)/\1/' \ -e 's/\(LoadModule .*mod_mpm_worker.so\)/#\1/' \ -e 's/\(LoadModule .*mod_mpm_prefork.so\)/#\1/' \ -e 's/\(ScriptAlias \)/#\1/' \ diff --git a/Containers/apache/nextcloud.conf b/Containers/apache/nextcloud.conf index 968f8901..aa63d75b 100644 --- a/Containers/apache/nextcloud.conf +++ b/Containers/apache/nextcloud.conf @@ -49,6 +49,13 @@ Listen 8000 # See https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxytimeout ProxyTimeout ${APACHE_MAX_TIME} + # See https://httpd.apache.org/docs/current/mod/mod_reqtimeout.html + # Disable body rate limit so that large uploads on slow connections are not aborted. + # The Timeout directive above still applies as the overall I/O timeout. + + RequestReadTimeout header=20-40,MinRate=500 body=0 + + # See https://httpd.apache.org/docs/trunk/mod/core.html#traceenable TraceEnable Off