Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache's limit to POST request size

Is there any limit of the POST request size in apache? What is the default value of this limit and is there any way to increase it? If it matters, Rails application is started on this server using passenger.

like image 282
roman Avatar asked Jul 27 '12 10:07

roman


People also ask

How many requests Apache can handle?

By default, Apache Request limit is 160 requests per second, that is, Apache can handle up to 160 requests per second, without any modification.

How do I check my LimitRequestBody?

To view the LimitRequestBody value enter the following command: grep "LimitRequestBody" /usr/local/apache2/conf/httpd. conf. If the value of LimitRequestBody is not set to 1 or greater or does not exist, this is a finding.


1 Answers

The limit in Apache is set via the LimitRequestBody directive and defaults to 0:

This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

Take a look at the full description of Apache's LimitRequestBody directive.

Besides that Rails may impose a limit itself (cant't tell though b/c I've never programmed in Ruby).

like image 105
aefxx Avatar answered Sep 18 '22 17:09

aefxx