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

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

问题描述

通过使用此模块,试图打URL时,但是我得到了以下错误的URL重写实验。网上寻找答案,但不知道什么是最好的方式来解决这个问题是....任何想法?


  

HTTP错误500.52 - URL重写模块错误。
  出站重写规则不能应用时的内容
  HTTP响应为EN codeD(gzip的)。**


  
  

IIS接收到的请求;然而,该请求的处理过程中发生了一个内部​​错误。此错误的根本原因取决于哪个模块处理请求,哪些是在工作进程中发生的事情出现此错误时。


  
  

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


  
  

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


  
  

通过身份验证的用户没有使用此DLL的权限。


  
  

该请求将被映射到托管处理程序,但没有安装.NET可扩展功能。



解决方案

我试着通过aracntido的意见,但它似乎并没有在IIS7工作。它的工作原理与IIS7.5服务器很好,所以我不知道周围是否有工作。

解决方法是在web.config中使用这样的:

 < system.webServer>
  < urlCom pression doStaticCom pression =false的doDynamicCom pression =false的dynamicCom pressionBeforeCache =FALSE/>
< /system.webServer>

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 Error 500.52 - URL Rewrite Module Error. Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").**

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 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 was not able to process configuration for the Web site or application.

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

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

解决方案

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.

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天全站免登陆