-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from pedreviljoen/main
Added ebextensions script for Apache proxy server to LimitRequestBody
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
configuration-files/community-provided/instance-configuration/01-apache-request-limit.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
################################################################################################### | ||
#### This configuration file which limits the request body size for an Apache proxy | ||
#### | ||
#### The workflow will create a *.conf file in the directory which Apache uses to check for | ||
#### additional proxy configuration which extends the existing Apache proxy configuration. | ||
#### | ||
#### The value which LimitRequestBody accepts is a number, and represent bytes. In this case the | ||
#### request body is limited to 102400 bytes. | ||
#### | ||
#### This will work for Apache proxy servers running on both Amazon Linux and Amazon Linux 2 AMIs | ||
#### | ||
#### Author: @pedreviljoen | ||
################################################################################################### | ||
|
||
files: | ||
"/etc/httpd/conf.d/filelimit.conf": | ||
mode: "000755" | ||
owner: root | ||
group: root | ||
content: | | ||
LimitRequestBody 102400 |