Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the limitrequestfieldsize in Apache 2.4.2

I'm working with Apache 2.4.2 and I need to change the LimitRequestFieldSize. supposedly (according to some Google researchs) that can be done in the httpd.conf file but I cant find that LimitRequestFieldSize neither the httpd.conf or any file within the Apache. Have any idea how I can do it?

like image 990
Fingolricks Avatar asked Jun 17 '14 21:06

Fingolricks


People also ask

How do I increase my LimitRequestFieldSize?

A better approach is to incrementally increase a setting until the error goes away. Generally, double the value. If it works try the half way point between initial value and doubled value. 8192 -> 16384 -> (8192/2 + 8192 = 12288).

Where is LimitRequestFieldSize?

To view the LimitRequestFieldSize value enter the following command: grep "LimitRequestFieldSize" /usr/local/apache2/conf/httpd. conf. If no LimitRequestFieldSize directives exist, this is a Finding.

What is AllowOverride all in Apache?

Apache has an option called “AllowOverride” which allows you to override some Apache settings via a . htaccess file you can place in a directory. In it, you can override PHP settings, create URL rewrites, … Pretty much the basics for every website.


1 Answers

In the end I solved simply adding LimitRequestFieldSize 500000 to the file httpd-default.conf

like image 64
Fingolricks Avatar answered Sep 18 '22 17:09

Fingolricks