jboss集成tomcat页面压缩(gzip)的配置

我的配置文件路径:
C:\jboss\server\default\deploy\jboss-web.deployer\server.xml
找到原配置:

<Connector port="8080" address="${jboss.bind.address}"    
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true" />

修改为:
<Connector port="8080" address="${jboss.bind.address}"    
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true" 
	 compression="on" 
 	 compressionMinSize="2048" 
         noCompressionUserAgents="gozilla, traviata" 
         compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"  />


你可能感兴趣的:(tomcat,c,Web,xml,jboss)