Skip to content

Commit 16a813e

Browse files
authored
fix(tomcat): maxHttpHeaderSize configuration (dotCMS#32168)
This pull request updates the `server.xml` configuration file for Tomcat to include a new property, `maxHttpHeaderSize`, across multiple HTTP and HTTPS connectors. This property is set to a default value of 8192 bytes, with the ability to override it using the `CMS_MAX_HTTP_HEADER_SIZE` environment variable. Key changes to `server.xml`: * Added `maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"` to the HTTP connector configuration. * Added `maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"` to the HTTPS connector configuration. [[1]](diffhunk://#diff-fc87979ef3adacc48c4fb30be5275119e5023899f83079295169cf5195e9de19R55) [[2]](diffhunk://#diff-fc87979ef3adacc48c4fb30be5275119e5023899f83079295169cf5195e9de19R78) [[3]](diffhunk://#diff-fc87979ef3adacc48c4fb30be5275119e5023899f83079295169cf5195e9de19R104)
1 parent 4ef691a commit 16a813e

File tree

1 file changed

+4
-0
lines changed
  • dotCMS/src/main/resources/container/tomcat9/conf

1 file changed

+4
-0
lines changed

dotCMS/src/main/resources/container/tomcat9/conf/server.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
noCompressionStrongETag="${CMS_NOCOMPRESSIONSTRONGETAG:-false}"
3131
compressionMinSize="${CMS_COMPRESSION_MIN_SIZE:-128}"
3232
useSendfile="${CMS_USE_SENDFILE:-false}"
33+
maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"
3334
/>
3435

3536
<!-- HTTP Connector from upstream proxy
@@ -51,6 +52,7 @@
5152
noCompressionStrongETag="${CMS_NOCOMPRESSIONSTRONGETAG:-false}"
5253
compressionMinSize="${CMS_COMPRESSION_MIN_SIZE:-128}"
5354
useSendfile="${CMS_USE_SENDFILE:-false}"
55+
maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"
5456
/>
5557

5658
<!-- HTTPS (SSL) Connector from upstream proxy
@@ -73,6 +75,7 @@
7375
noCompressionStrongETag="${CMS_NOCOMPRESSIONSTRONGETAG:-false}"
7476
compressionMinSize="${CMS_COMPRESSION_MIN_SIZE:-128}"
7577
useSendfile="${CMS_USE_SENDFILE:-false}"
78+
maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"
7679
/>
7780

7881

@@ -98,6 +101,7 @@
98101
noCompressionStrongETag="${CMS_NOCOMPRESSIONSTRONGETAG:-false}"
99102
compressionMinSize="${CMS_COMPRESSION_MIN_SIZE:-128}"
100103
useSendfile="${CMS_USE_SENDFILE:-false}"
104+
maxHttpHeaderSize="${CMS_MAX_HTTP_HEADER_SIZE:-8192}"
101105
SSLEnabled="${CMS_SSL_ENABLED:-true}"
102106
SSLCertificateFile="${CMS_SSL_CERTIFICATE_FILE:-/data/shared/assets/certs/local.dotcms.site.pem}"
103107
SSLCertificateKeyFile="${CMS_SSL_CERTIFICATE_KEY_FILE:-/data/shared/assets/certs/local.dotcms.site-key.pem}"

0 commit comments

Comments
 (0)