From 150898fab42bbc51cc164d38791152effb5900b4 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Tue, 20 Mar 2018 07:24:44 +0530 Subject: [PATCH] Enable compression in catalina-server.xml This commit enables the compression in tomcat. This was disabled due to a gzip library issue in JDK. --- modules/distribution/src/assembly/bin.xml | 14 -------------- .../src/core/conf/tomcat/catalina-server.xml | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 756c3a7a..35216133 100755 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -715,7 +715,6 @@ **/LICENSE.txt **/release-notes.html **/webapp-mode/WEB-INF/web.xml - **/tomcat/catalina-server.xml @@ -1012,7 +1011,6 @@ **/LICENSE.txt **/release-notes.html **/dbscripts - **/tomcat/catalina-server.xml @@ -1260,18 +1258,6 @@ true 644 - - src/core/conf/tomcat/catalina-server.xml - ${pom.artifactId}-${pom.version}/wso2/analytics/conf/tomcat - true - 644 - - - src/core/conf/tomcat/catalina-server.xml - ${pom.artifactId}-${pom.version}/wso2/broker/conf/tomcat - true - 644 - src/core/conf/synapse-handlers.xml diff --git a/modules/distribution/src/core/conf/tomcat/catalina-server.xml b/modules/distribution/src/core/conf/tomcat/catalina-server.xml index 65e534c3..fdc212f2 100644 --- a/modules/distribution/src/core/conf/tomcat/catalina-server.xml +++ b/modules/distribution/src/core/conf/tomcat/catalina-server.xml @@ -38,7 +38,7 @@ maxKeepAliveRequests="200" acceptCount="200" server="WSO2 Carbon Server" - compression="off" + compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/javascript,application/x-javascript,application/javascript,application/xml,text/css,application/xslt+xml,text/xsl,image/gif,image/jpg,image/jpeg" @@ -65,7 +65,7 @@ acceptCount="200" server="WSO2 Carbon Server" clientAuth="want" - compression="off" + compression="on" scheme="https" secure="true" SSLEnabled="true"