Skip to content

Commit f84a2c5

Browse files
Merge pull request #140 from pedreviljoen/main
Added ebextensions script for Apache proxy server to LimitRequestBody
2 parents 2869b7b + 2e16d04 commit f84a2c5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
###################################################################################################
2+
#### This configuration file which limits the request body size for an Apache proxy
3+
####
4+
#### The workflow will create a *.conf file in the directory which Apache uses to check for
5+
#### additional proxy configuration which extends the existing Apache proxy configuration.
6+
####
7+
#### The value which LimitRequestBody accepts is a number, and represent bytes. In this case the
8+
#### request body is limited to 102400 bytes.
9+
####
10+
#### This will work for Apache proxy servers running on both Amazon Linux and Amazon Linux 2 AMIs
11+
####
12+
#### Author: @pedreviljoen
13+
###################################################################################################
14+
15+
files:
16+
"/etc/httpd/conf.d/filelimit.conf":
17+
mode: "000755"
18+
owner: root
19+
group: root
20+
content: |
21+
LimitRequestBody 102400

0 commit comments

Comments
 (0)