From which Apache version onward is LimitRequestFieldSize no longer hardcoded to 8k max?

8,935

Ok, so it turns out that it works in 2.2, but you need to increase the max AJP packet size if you have a Tomcat behind it and use mod_proxy_ajp, or else it will still give a 400 Bad Request.

Specifically, set this in Apache:

LimitRequestFieldSize 65536
ProxyIOBufferSize 65536

and this in Tomcat server.xml on the ajp connector:

packetSize="65536"

Only setting LimitRequestFieldSize won't do the trick!

Share:
8,935

Related videos on Youtube

Therealmarley
Author by

Therealmarley

Updated on September 18, 2022

Comments

  • Therealmarley
    Therealmarley almost 2 years

    Title says it all: from which version onward is the LimitRequestFieldSize no longer hardcoded to a max. of 8k?

    It seems 2.2.15 is still affected.

  • sactiw
    sactiw about 8 years
    Regarding where to set in Apache: serverfault.com/questions/413984/…