GZIP压缩不是唤醒在jBoss服务器上时在LINUX系统上分解 [英] GZIP Compression is not woking On jBoss Server When depolyed on LINUX SYSTEM

查看:346
本文介绍了GZIP压缩不是唤醒在jBoss服务器上时在LINUX系统上分解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用GZIP压缩技术来压缩我的应用程序中的各种文件。当我在我的本地服务器(jBoss EAP 6.1 - 独立完整配置文件)中使用它们时,所有的文件都被Gzip压缩和压缩,但是当我试图在我的服务器(Linux系统)上实现同样的情况。 p>

我添加了这个在我的独立 - > Windows系统。

  < system-properties> 
< property name =org.apache.coyote.http11.Http11Protocol.COMPRESSIONvalue =on/>
< property name =org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPESvalue =text / javascript,text / css,text / html,application / font-woff,application / json,application / javascript ,image / gif/>
< / system-properties>

我在我的linux系统配置文件中也添加了这个。



有人可以给我一个解决方案为什么它不工作在我的服务器(Linux),但使用我的本地服务器(Windows系统)。

解决方案

注意:我没有jBoss测试这个。



第一步是检查服务器日志是否已经看到选项并应用它或是否有错误。



然后,您需要检查客户端和服务器交换的头,并查找接受 - 编码(客户端)和 Content-Encoding (服务器)头参数,看看是否都支持gzip和他们是否真的使用它。请参见协议的 https://en.wikipedia.org/wiki/HTTP_compression


I am using GZIP compression technique to compress various files in my application. All the files were getting Gzipped and compressed when I was using them on my local server (jBoss EAP 6.1--Standalone-Full profile) but when I tried to implement that on my server (Linux System) the same is not happening .

I added this in my standalone -- > for windows system .

 <system-properties>
        <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
        <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html,application/font-woff,application/json,application/javascript,image/gif"/>
    </system-properties> 

I added this in my linux system profiles also .

Can someone give me a solution Why is it not working on my server (Linux) but working with my local server (Windows System).

解决方案

Caveat: I don't have jBoss to test this.

The first step would be to check the server logs whether it has seen the option and applied it or whether there is an error.

Then you need to check the headers which the client and the server exchange and look for the Accept-Encoding (client) and Content-Encoding (server) header parameters to see whether both support gzip and whether they actually use it. See https://en.wikipedia.org/wiki/HTTP_compression for the protocol.

这篇关于GZIP压缩不是唤醒在jBoss服务器上时在LINUX系统上分解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆