I believe that this is one of the older questions, and it has been discussed. But I still have some questions regarding the subject, and could use some "up to date" answers.

So to solve this problem, I have to play around with Apache2 directives: LimitRequestFieldSize, LimitRequestLine

Now lets say I want to double the values on this directives, I go into httpd.conf and add few lines: LimitRequestFieldsize 16384, LimitRequestLine 16384

In the original Apache documentation, both of these directives have a note: Under normal conditions, the value should not be changed from the default. Also, you can't set this higher than 8190 without modifying the source and rebuilding.

Ok, so essentially, the original documentation suggests that I have to recompile Apache with these values in code. Also I found some forums topics that suggest the same,the recompiling should happen in order to achieve this task. BUT I have also found some topics that suggests that it became necessary, I do not need to do it, as they took the upper limit for these two directives of.

As well as that, when I add these values into my httpd.conf, I DO NOT get any errors while restarting apache2. Although I found in some forums that you should get the error.

So now my questions are: Do I need to recompile apache to get these 2 directives right? How can I check what are the current values of these 2 directives? Is there other ways to achieve this ?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.