'【Tomcat9】Is it possible to set a property "maxHttpHeaderSize" on AJP1.3 connector?

Server.xml

<Connector protocol="AJP/1.3"
           address="0.0.0.0"
           port="8009"
           redirectPort="8443"
           secretRequired="true"
           secret="MyApp"
           maxHttpHeaderSize="10000" />

This doesn't work. In an initialization log of Tomcat says it can't set a property "maxHttpHeaderSize" by warning level.

How can I change a limitation about the size of request-header?



Solution 1:[1]

AJP does not support maxHttpHeaderSize you should use packetSize instead.

I should also add that it was necessary to change ProxyIOBufferSize.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1