问题描述
我不能让静态或动态的COM pression为.ASP,.JS或.css文件在新服务器上运行。
I can't get static or dynamic compression to work on a new server for .ASP, .JS or .CSS files.
我在运行Windows Server 2008 R2标准64位。在IIS角色服务,我已经安装了ASP,以及静态和动态融为一体pression。我使用的是默认应用与标准ApplicationPoolIdentity。我已经启用所有COM pression选项的网站。
I'm running Windows Server 2008 R2 Standard 64 bit. Under IIS Role Services, I have ASP installed, as well as static and dynamic compression. I'm using DefaultAppPool with the standard ApplicationPoolIdentity. I've enabled all the compression options for the site.
下面是我的applicationHost.config的相关部分(这是所有在system.webServer):
Here's the relevant section of my applicationHost.config (this is all under system.webServer):
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
<serverRuntime frequentHitThreshold="1" />
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />
于是我打开失败请求跟踪以获得更好的视野。
So I turned on failed request tracing to get a better view.
有关ASP,它似乎完全跳过静态和动态融为一体pression。没有为没有条目DYNAMIC_COM preSSION_SUCCESS或动态COM preSSION_NOT_SUCCESS。
For ASP, it appears to skip static and dynamic compression entirely. There is no entry for DYNAMIC_COMPRESSION_SUCCESS or DYNAMIC COMPRESSION_NOT_SUCCESS.
有关CSS和JS,它试图静态COM pression但失败:
For CSS and JS, it attempts static compression but fails:
STATIC_COMPRESSION_NOT_SUCCESS Reason="NO_MATCHING_SCHEME"
我不能在网上什么NO_MATCHING_SCHEME意味着找到任何坚实的文档。救命啊!
I can't find any solid documentation online about what NO_MATCHING_SCHEME means. Help!
推荐答案
也许你的应用程序池配置为使用经典模式:
Probably you have application pool configured to use Classic mode:
尝试通过的
这篇关于IIS 7.5没有静态或动态的COM pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!