Size of a request header field exceeds server limit. | Community
Skip to main content
Level 4
June 29, 2021
Solved

Size of a request header field exceeds server limit.

  • June 29, 2021
  • 3 replies
  • 6771 views

Where can we find the configuration to update the request header size in AEM dispatcher?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ChitraMadan

Hi @aemnewbie ,

 

You can define the header limit in Apache config file - httpd.conf

LimitRequestLine 16384

This will increase the size to 16KB

 

Default value is 8KB

 

Please refer to below documentation

https://httpd.apache.org/docs/2.4/en/mod/core.html#limitrequestline

There are other settings available too, like LimitRequestFields, LimitRequestFieldSize. Please use them as per your requirement.

 

Thanks,

Chitra

3 replies

ChitraMadan
Community Advisor
ChitraMadanCommunity AdvisorAccepted solution
Community Advisor
June 29, 2021

Hi @aemnewbie ,

 

You can define the header limit in Apache config file - httpd.conf

LimitRequestLine 16384

This will increase the size to 16KB

 

Default value is 8KB

 

Please refer to below documentation

https://httpd.apache.org/docs/2.4/en/mod/core.html#limitrequestline

There are other settings available too, like LimitRequestFields, LimitRequestFieldSize. Please use them as per your requirement.

 

Thanks,

Chitra

Adobe Employee
April 6, 2022

Hi Chitra,

 

I couldn't find the LimitRequestLine in the httpd.conf file under etc/httpd/conf?

 

Please let me know where can I find the header size?

 

Thanks,

VJ

Level 2
October 9, 2022

Has anyone faced same issue from AEMCaaS ? So, at cloud manager, we dont have httpd.conf file. I am facing same issue, but unable to resolve. I tried adding LimitRequestFieldSize 16384 to vhost, no effect. Randomly tried at many files, somehow dispatcher is not picking this config. 

October 11, 2023

Hi Saravana Prakash, 

Were you able to change the LimitRequestLine  on AEMaaCS, can you please let know if you were able to resolve this and what was the solution for it.

 

Thank you!

Sujit

Level 2
December 26, 2023

Yes, we were able to fix this by setting under  

<VirtualHost *:80> LimitRequestFieldSize 32768 </VirtualHost>

of our myproject.vhost file. to be safer, duplicated this setting in ALL vhost files having `<VirtualHost *:80>