Pathfinder
Pathfinder

Reputation: 3

【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?

Upvotes: 0

Views: 473

Answers (1)

Aoaoaoappa
Aoaoaoappa

Reputation: 35

AJP does not support maxHttpHeaderSize you should use packetSize instead.

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

Upvotes: 1

Related Questions