url rewrite导致的500.19 0x8007000d

https://stackoverflow.com/questions/13532447/http-error-500-19-iis-7-5-error-0x8007000d

It seems you are using the url rewrite functionality. Please make sure that you have installed your rewrite software in the server other wise you may get this error.

To check whether URL rewrite is installed you can go to "IIS Home" and see if there is URL rewrite component in the list of components.

If you didn't find one then you can install the same using the below link: http://www.iis.net/downloads/microsoft/url-rewrite

You can also use the Microsoft Web Platform Installer and install the product URL Rewrite.

iis 10以下的版本,需要如下配置,并且另外安装url rewrite module

<rewrite>

    <outboundRules rewriteBeforeCache="true">
      <rule name="Remove Server header">
        <match serverVariable="RESPONSE_Server" pattern=".+" />
        <action type="Rewrite" value="Edenred" />
      </rule>
    </outboundRules>
  </rewrite>

 

iis 10的配置

<system.webServer>

    <security>
        <requestFiltering removeServerHeader="true" />
    </security>
</system.webServer>

 

扩展阅读

Tip/Trick: Url Rewriting with ASP.NET

Url Rewrite 再说Url 重写

 常用的URL-Rewrite方案 
URL-Rewrite既可以发生在Web服务器(IIS/Apache)一级,也可以发生在Web应用程序一级(Asp.Net/Jsp/PHP/…)。

 

posted @ 2019-03-06 14:59  ChuckLu  阅读(874)  评论(1编辑  收藏  举报