windows-server-2008 – GZip压缩在IIS 7.5上无效
我试图支持IIS下的静态文件的GZip压缩(默认情况下应该启用但不能)但到目前为止还没有工作.这是< system.webServer>下的部分. web应用程序的web.config文件中的节点;
<httpCompression directory="%SystemDrive%inetpubtempIIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%system32inetsrvgzip.dll" staticCompressionLevel="9" /> <dynamicTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/x-javascript" enabled="true" /> <add mimeType="application/json" 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> <urlCompression doStaticCompression="true" /> 我尝试使用谷歌浏览器.这是请求标题;
这些是响应标题;
我检查了applicationHost.config文件,发现了一些如下节点; ---- <section name="httpCompression" allowDefinition="AppHostOnly" overrideModeDefault="Deny" /> ---- <section name="urlCompression" overrideModeDefault="Allow" /> ---- <httpCompression directory="%SystemDrive%inetpubtempIIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%system32inetsrvgzip.dll" /> <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> ---- <urlCompression /> 我在这里想念的是什么?
您可能没有在临时压缩文件夹上正确设置权限.您需要确保IIS安装(或应用程序)正在运行的用户具有对压缩文件夹的写入权限.
More here (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows-server-2008-r2 – 将组策略环回应用于特定计算机上
- 在Windows Phone 8 Bing地图上设置图钉(XAML C#)
- windows-vista – 停止在Vista上重复按键的外部USB键盘
- 远程PowerShell脚本不适用Hyper-V快照
- 如何在Windows上使用Python更改文件夹图标?
- Windows上的Helios Eclipse java调试器很难突出显示源代码
- Windows – 从Microsoft PKI中的CDP和AIA中删除LDAP
- azure – Microsoft Knowledge API – 在数据库中搜索句子
- 如何使用Windows身份验证和强制加密设置为true连接到MSSQL
- windows – 具有内部存储的双节点故障转移群集