diff --git a/Dockerfile b/Dockerfile index 2069255f..97e39878 100644 --- a/Dockerfile +++ b/Dockerfile @@ -125,6 +125,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 d834733a..9ad32eca 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,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 0831d1b3..7a23b3db 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 "^/(.*)" /usr/local/bin/mapserv_wrapper/$1