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?
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).
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.
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.
In the end I solved simply adding LimitRequestFieldSize 500000 to the file httpd-default.conf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With