Expand my Community achievements bar.

SOLVED

Size of a request header field exceeds server limit.

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 1

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

Avatar

Level 3

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. 

Avatar

Level 1

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

Avatar

Level 3

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>

Avatar

Community Advisor

Hi @saravana_sgws @sujitb74322530 ,

This change is not working in AEMAACS 

Error Apache configuration uses non-allowlisted directives:LimitRequestLine

 

 

Thanks

Himanshu Jain

Avatar

Level 1

Hi Himanshu, 

 

try use LimitRequestFieldSize instead of LimitRequestLine

LimitRequestFieldSize 16384

 

Regards,

Sujit

Avatar

Community Advisor

Hi @sujitb74322530 ,

Yes only LimitRequestFieldSize will work in AEMAACS.

 

Thanks

Himanshu Jain