From 3d7387d06c1941f6f0c88497e36274bfabca61eb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 24 Oct 2018 19:16:04 +0200 Subject: [PATCH] tomcat roles: add the useBodyEncodingForURI, maxHttpHeaderSize, disableUploadTimeout options to server.xml. --- .../templates/tomcat-server.xml.j2 | 16 ++++++++++++---- tomcat/templates/tomcat-server.xml.j2 | 15 +++++++++++---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 index af880bf7..7dbc9738 100644 --- a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 +++ b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 @@ -56,12 +56,16 @@ {% if item.http_enabled %} + URIEncoding="UTF-8" + bindOnInit="false" /> {% endif %} diff --git a/tomcat/templates/tomcat-server.xml.j2 b/tomcat/templates/tomcat-server.xml.j2 index 75bb0bca..9dc83aa6 100644 --- a/tomcat/templates/tomcat-server.xml.j2 +++ b/tomcat/templates/tomcat-server.xml.j2 @@ -79,25 +79,30 @@ {% if tomcat_http_enabled %} {% endif %} {% if tomcat_ajp_enabled %} + maxHttpHeaderSize="8192" + disableUploadTimeout="true" + bindOnInit="false" /> {% endif %}