Request Entity Too Large mod_jk

I have setup where there is apache (httpd) and apache tomcat both are connected with ajp and in my http.conf

LimitRequestLine 65536
LimitRequestFieldSize 65536

under <VirtualHost> and outside of it as well

my file looks like


now I am making a request with cookie value > 8Kb and I see error message on response

Request Entity Too Large

does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.

I turned debug logging for mod_jk and I see

ajp_marshal_into_msgb::jk_ajp_common.c (450): failed appending the header value for header ‘Cookie’ of length 6

apache access log at debug level doesn’t show anything

ErrorLog            /some/pathapache.error.log
LogLevel            debug

Any one has any pointer as to what is incorrectly configured ?

apache version 2.4.6


Leave a Reply