Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have developed an application which uses a jQuery plugin, which in turn uses excess cookie data. the problem is after every 15-20 request i am shown this error message by the browser.

Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit.

after digging around i came to know by default apache has the default value of cookie length somewhere around 8190 bytes. and to increase the limit.i need to change/add the below line to configuration directive.

LimitRequestFieldSize 16380

i tried adding the above code in .htaccess and restarted the apache server too, but it didn't work.

i am confused on where to place this line. is it in httpd.conf file or is there anyway i can increase the limit using .htaccess file. i will appreciate if someone could point me in the right direction.

and BTW i am on OSX 10.7.4 using MAMP.

share|improve this question
up vote 6 down vote accepted

The documentation states the following:

Context: server config, virtual host

This means that that directive either goes into the global server configuration (anywhere in your httpd.conf file or in a file that gets included), or in one of the VirtualHost definitions. It won't work if you place it in an .htaccess file.

You should probably also review your application to see where that excess data comes from.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.