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

367 Views Asked by At

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?

1

There are 1 best solutions below

0
Aoaoaoappa On

AJP does not support maxHttpHeaderSize you should use packetSize instead.

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