URL 重写出站规则 IIS7 [英] URL Rewrite Outbound Rules IIS7

查看:26
本文介绍了URL 重写出站规则 IIS7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用此模块重写 URL,但是在尝试访问 URL 时出现以下错误.在网上寻找答案,但不确定解决这个问题的最佳方法是什么......有什么想法吗??

Experimenting with URL rewrites using this module, however I'm getting the following error when attempting to hit the URL. Looked online for answers, but not sure what the best way to get around this is.... any ideas??

HTTP 错误 500.52 - URL 重写模块错误.当内容为HTTP 响应被编码(gzip").**

HTTP Error 500.52 - URL Rewrite Module Error. Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").**

IIS 收到请求;但是,在处理请求期间发生了内部错误.此错误的根本原因取决于处理请求的模块以及发生此错误时工作进程中发生的情况.

IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.

IIS 无法访问网站或应用程序的 web.config 文件.如果 NTFS 权限设置不正确,就会发生这种情况.

IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.

IIS 无法处理网站或应用程序的配置.

IIS was not able to process configuration for the Web site or application.

经过身份验证的用户无权使用此 DLL.

The authenticated user does not have permission to use this DLL.

请求已映射到托管处理程序,但未安装 .NET 扩展功能.

The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

推荐答案

我已经尝试了 aracntido 的评论,但它在 IIS7 中似乎不起作用.它在带有 IIS7.5 的服务器上运行良好,所以我不确定是否有解决办法.

I've tried the comments by aracntido, but it doesn't seem to work in IIS7. It works fine on servers with IIS7.5, so I'm not sure whether there is a work around.

修复方法是在 web.config 中使用它:

The fix is to use this in the web.config:

<system.webServer>
  <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
</system.webServer>

这篇关于URL 重写出站规则 IIS7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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