我如何禁用Ubuntu 10.10上的Apache的gzip?

我想弄清楚如何禁用或卸载从我的Ubuntu服务器的gzip。 这是为了支持一些错误的软件,当它试图疯狂地调用一个css文件(不要问,代码体系结构是可怕的)时,它会被打破。 支持小组build议我从我的服务器上卸载gzip来解决问题。

我在phpinfo()中看到了这个。

HTTP_ACCEPT_ENCODING gzip,deflate,sdch

但我无法弄清楚在Apache中设置或禁用这个东西。 当我试图finddeflate被使用的地方(我的研究表明deflate和gzip被链接)时,我在下面的文件中find了一个叫magic的文件:

0 string \037\235 application/octet-stream x-compress # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver) 0 string \037\213 application/octet-stream x-gzip # According to gzip.h, this is the correct byte order for packed data. 0 string \037\036 application/octet-stream # # This magic number is byte-order-independent. # 0 short 017437 application/octet-stream 

我只是想closures这个应用程序的gzip,看看我的网页是否会停止引发416 HTTP错误。

禁用mod_deflatemod_gzip模块。

在Debian中:

  a2dismod mod_deflate a2dismod mod_gzip 

在RedHattypes中,修改存储在/etc/httpd/conf.d/*.conf文件

…在Ubuntu中,您将在/ etc / apache2 / mods-available中findmod_deflate的.conf文件。 mod_gzip不在Ubuntu的标准Apache上,所以可能是mod_deflate。