Skip to content

Commit

Permalink
Merge pull request #140 from pedreviljoen/main
Browse files Browse the repository at this point in the history
Added ebextensions script for Apache proxy server to LimitRequestBody
  • Loading branch information
mrenneke-amazon authored Jan 20, 2022
2 parents 2869b7b + 2e16d04 commit f84a2c5
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit f84a2c5

Please sign in to comment.