From e55c988a2494704d762e9a100071573a6ed7e131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 22 Aug 2024 14:13:49 +0200 Subject: [PATCH] Make LimitRequestLine configurable --- Dockerfile | 1 + README.md | 2 ++ runtime/etc/apache2/conf-enabled/mapserver.conf | 1 + 3 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 79797215..a64421f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,6 +130,7 @@ ENV MS_DEBUGLEVEL=0 \ BUSY_TIMEOUT=300 \ IDLE_TIMEOUT=300 \ IO_TIMEOUT=40 \ + APACHE_LIMIT_REQUEST_LINE=8190 \ GET_ENV=env CMD ["/usr/local/bin/start-server"] diff --git a/README.md b/README.md index 8eaa78b4..8d681814 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ to tune it: this period of time will be terminated (defaults to `300`) - `IO_TIMEOUT`: The maximum period of time the module will wait while trying to read from or write to a FastCGI application (defaults to `40`) +- `APACHE_LIMIT_REQUEST_LINE`: The maximum size of the HTTP request line in + bytes (defaults to `8190`) ## Running multiple Mapfiles diff --git a/runtime/etc/apache2/conf-enabled/mapserver.conf b/runtime/etc/apache2/conf-enabled/mapserver.conf index c7c78f06..2729fa7e 100644 --- a/runtime/etc/apache2/conf-enabled/mapserver.conf +++ b/runtime/etc/apache2/conf-enabled/mapserver.conf @@ -5,6 +5,7 @@ FcgidMaxProcessesPerClass ${MAX_PROCESSES} FcgidBusyTimeout ${BUSY_TIMEOUT} FcgidIdleTimeout ${IDLE_TIMEOUT} FcgidIOTimeout ${IO_TIMEOUT} +LimitRequestLine ${APACHE_LIMIT_REQUEST_LINE} ScriptAliasMatch "^${MAPSERVER_BASE_PATH}/(.*)" /usr/local/bin/mapserv_wrapper/$1 ScriptAliasMatch "^${MAPSERVER_BASE_PATH}" /usr/local/bin/mapserv_wrapper