最近在我的服务器上启用mod_defalte
来压缩某些文件。mod_deflate压缩导致swf文件无法正常工作
我认为安装程序不会导致与.swf
文件有任何问题,但因为我有.swf
文件正在运行的问题,但没有越过他们的加载屏幕。
mod_deflate模块目录的htaccess配置
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
我发现似乎有与压缩和相当多的问题.swf
文件,但我不确定为什么mod_deflate
当它被设置为将影响他们的像上面那样运行?
可能的原因?
我在WHM-> Apache配置 - >包含编辑器下面有以下设置,这些是默认的mod_deflate
设置还是我添加的东西?
我只想做一个基本的配置,如上面的例子,我应该只删除post_virtualhost_global.conf
设置?
mod_deflate模块 - post_virtualhost_global.conf
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
<IfModule mod_setenvif.c>
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_headers.c>
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
来源
mod_deflate模块和.swf
flash文件的问题:https://www.google.co.uk/search?q=mod+defalte+defaults&oq=mod+defalte+defaults&aqs=chrome..69i57j69i60l5.3099j0&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8#es_sm=122&espv=210&psj=1&q=mod_deflate+flash+files
谢谢,所以它是安全的,只是删除所有的,现在用默认值? – Dan