Skip to content

Commit

Permalink
Merge pull request #533 from camptocamp/LimitRequestLine
Browse files Browse the repository at this point in the history
Make LimitRequestLine configurable
  • Loading branch information
sbrunner authored Jun 13, 2023
2 parents a2a465e + e96e3fb commit 936609e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions runtime/etc/apache2/conf-enabled/mapserver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
<LocationMatch "^/.*">
Expand Down

0 comments on commit 936609e

Please sign in to comment.