forked from ISTI-ansible-roles/ansible-roles
tomcat roles: add the useBodyEncodingForURI, maxHttpHeaderSize, disableUploadTimeout options to server.xml.
This commit is contained in:
parent
87929ea4d1
commit
3d7387d06c
|
@ -59,9 +59,13 @@
|
||||||
enableLookups="false"
|
enableLookups="false"
|
||||||
maxQueueSize="{{ item.max_queue_size | default(32767) }}"
|
maxQueueSize="{{ item.max_queue_size | default(32767) }}"
|
||||||
maxThreads="{{ item.max_threads }}" connectionTimeout="60000"
|
maxThreads="{{ item.max_threads }}" connectionTimeout="60000"
|
||||||
URIEncoding="UTF-8" bindOnInit="false" address="{{ item.http_address }}"
|
URIEncoding="UTF-8"
|
||||||
|
bindOnInit="false" address="{{ item.http_address }}"
|
||||||
port="{{ item.http_port }}" protocol="HTTP/1.1"
|
port="{{ item.http_port }}" protocol="HTTP/1.1"
|
||||||
maxPostSize="{{ item.max_post_size | default(104857600) }}"
|
maxPostSize="{{ item.max_post_size | default(104857600) }}"
|
||||||
|
useBodyEncodingForURI="true"
|
||||||
|
maxHttpHeaderSize="8192"
|
||||||
|
disableUploadTimeout="true"
|
||||||
{% if tomcat_m_reverse_proxy_name_enabled %}
|
{% if tomcat_m_reverse_proxy_name_enabled %}
|
||||||
proxyName="{{ tomcat_m_reverse_proxy_name }}"
|
proxyName="{{ tomcat_m_reverse_proxy_name }}"
|
||||||
proxyPort="{{ tomcat_m_reverse_proxy_port }}"
|
proxyPort="{{ tomcat_m_reverse_proxy_port }}"
|
||||||
|
@ -75,6 +79,9 @@
|
||||||
enableLookups="false"
|
enableLookups="false"
|
||||||
address="{{ item.ajp_address }}"
|
address="{{ item.ajp_address }}"
|
||||||
URIEncoding="UTF-8"
|
URIEncoding="UTF-8"
|
||||||
|
useBodyEncodingForURI="true"
|
||||||
|
maxHttpHeaderSize="8192"
|
||||||
|
disableUploadTimeout="true"
|
||||||
maxQueueSize="{{ item.max_queue_size | default(32767) }}"
|
maxQueueSize="{{ item.max_queue_size | default(32767) }}"
|
||||||
maxThreads="{{ item.max_threads }}"
|
maxThreads="{{ item.max_threads }}"
|
||||||
connectionTimeout="60000"
|
connectionTimeout="60000"
|
||||||
|
@ -83,7 +90,8 @@
|
||||||
proxyName="{{ tomcat_m_reverse_proxy_name }}"
|
proxyName="{{ tomcat_m_reverse_proxy_name }}"
|
||||||
proxyPort="{{ tomcat_m_reverse_proxy_port }}"
|
proxyPort="{{ tomcat_m_reverse_proxy_port }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
URIEncoding="UTF-8" bindOnInit="false" />
|
URIEncoding="UTF-8"
|
||||||
|
bindOnInit="false" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<Engine name="Catalina" defaultHost="localhost">
|
<Engine name="Catalina" defaultHost="localhost">
|
||||||
|
|
|
@ -82,13 +82,17 @@
|
||||||
enableLookups="false"
|
enableLookups="false"
|
||||||
maxQueueSize="{{ tomcat_max_queue_size | default(32767) }}"
|
maxQueueSize="{{ tomcat_max_queue_size | default(32767) }}"
|
||||||
maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000"
|
maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000"
|
||||||
URIEncoding="UTF-8" bindOnInit="false" address="{{ tomcat_http_address }}"
|
URIEncoding="UTF-8"
|
||||||
|
useBodyEncodingForURI="true"
|
||||||
|
bindOnInit="false" address="{{ tomcat_http_address }}"
|
||||||
port="{{ tomcat_http_port }}" protocol="HTTP/1.1"
|
port="{{ tomcat_http_port }}" protocol="HTTP/1.1"
|
||||||
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
|
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
|
||||||
{% if tomcat_reverse_proxy_name_enabled %}
|
{% if tomcat_reverse_proxy_name_enabled %}
|
||||||
proxyName="{{ tomcat_reverse_proxy_name }}"
|
proxyName="{{ tomcat_reverse_proxy_name }}"
|
||||||
proxyPort="{{ tomcat_reverse_proxy_port }}"
|
proxyPort="{{ tomcat_reverse_proxy_port }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
maxHttpHeaderSize="8192"
|
||||||
|
disableUploadTimeout="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -98,6 +102,7 @@
|
||||||
enableLookups="false" address="{{ tomcat_ajp_address }}"
|
enableLookups="false" address="{{ tomcat_ajp_address }}"
|
||||||
maxQueueSize="{{ tomcat_max_queue_size | default(32767) }}"
|
maxQueueSize="{{ tomcat_max_queue_size | default(32767) }}"
|
||||||
URIEncoding="UTF-8"
|
URIEncoding="UTF-8"
|
||||||
|
useBodyEncodingForURI="true"
|
||||||
maxThreads="{{ tomcat_max_threads }}"
|
maxThreads="{{ tomcat_max_threads }}"
|
||||||
connectionTimeout="60000"
|
connectionTimeout="60000"
|
||||||
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
|
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
|
||||||
|
@ -105,7 +110,9 @@
|
||||||
proxyName="{{ tomcat_reverse_proxy_name }}"
|
proxyName="{{ tomcat_reverse_proxy_name }}"
|
||||||
proxyPort="{{ tomcat_reverse_proxy_port }}"
|
proxyPort="{{ tomcat_reverse_proxy_port }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
URIEncoding="UTF-8" bindOnInit="false" />
|
maxHttpHeaderSize="8192"
|
||||||
|
disableUploadTimeout="true"
|
||||||
|
bindOnInit="false" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- An Engine represents the entry point (within Catalina) that processes
|
<!-- An Engine represents the entry point (within Catalina) that processes
|
||||||
|
|
Loading…
Reference in New Issue