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