Hi,

I was wondering if someone could clarify the difference between the
configuration parameters mentioned in the subject of this email or point me
to some documentation that explains it?

Do they both refer to the same type of compression?

Based on the Tomcat docs I know the former controls whether or not the
connector uses gzip compression. Regarding the latter, the Tomcat docs say:
"Disables compression if set to true and OpenSSL supports disabling
compression.".  Is that referring to a different type of compression?

Here is the behavior I'm seeing:
--compression=on and SSLDisableCompression=false, the responses are gzip'd
--compression=on and SSLDisableCompression=true, the responses are gzip'd
--compression=off and SSLDisableCompression=false, the responses are not
gzip'd


Environment:

Tomcat 7.0.40
Java 7
RHEL (Linux)
APR/native connector with SSL
OpenSSL 1.0.0
APR 1.4.8

server.xml example:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Service name="Catalina">
    <Connector port="...." redirectPort="8443" URIEncoding="UTF-8"/>
    <Connector port="8443"
scheme="https"
URIEncoding="UTF-8"
 secure="true"
compression="on"
compressableMimeType="text/html,........."
 SSLEnabled="true"
SSLCertificateFile="cert.pem"
SSLCipherSuite="ALL:!ADH:!SSLv2:!EXPORT40:!EXP:!LOW:......."
 SSLDisableCompression="true"/>
  </Service>
</Server>

Reply via email to