Documentation

Size of a request header field exceeds server limit

Last update: Thu Nov 07 2024 00:00:00 GMT+0000 (Coordinated Universal Time)

Increase the value for #LimitRequestFieldSize and #LimitRequestLine for AMS/On-Premises versions. Increase the Request Header limit by also adding those properties in the Vhost files for AEMaaCS.

Description

Environment

  • Adobe Experience Manager (AEM)
  • Adobe Experience Manager as a Cloud Service (AEMaaCS)

Issue/Symptoms

When opening a page, users receive a Bad Request  response with the following message:

“Size of a request header field exceeds server limit”

Resolution

Apache has a default LimitRequestLine of 8K. For more information, consult Apache’s Core Features: LimitRequestLine Directive on the Apache website.

This error can be overcome by increasing the value for #LimitRequestFieldSize and #LimitRequestLine.

For AMS/ On-Prem:

The header limit can be increased in Apache configuration file - httpd.conf.

For AEMaaCS:

Increase the Request Header limit by adding the above properties in the Vhost files:

// Allow longer headers

LimitRequestFieldSize <new_value>

LimitRequestLine <new_value>
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f