我已经使用以下技术来实现Url重写。
http://weblogs.asp.net/owscott/archive/2013/10/24/creating-a-reverse-proxy-with-url-rewrite-for-iis.aspx
但是我得到的错误
HTTP Error 500.52 - URL Rewrite Module Error. Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip").
我已禁用静态压缩。 也已经添加到我的web.config在我想要redirect的内部服务器上:
<system.webServer> <urlCompression doStaticCompression="false" doDynamicCompression="true" dynamicCompressionBeforeCache="false" /> </system.webServer>
我想从外部IP做url重写说:41.76.89.165 / mywebsite到192.168.154.21 / mywebsite
请有人帮忙