我正在使用以下入站规则:
<rule name="CrmInbound" enabled="true">
<match url="^crm/(.*)" />
<action type="Rewrite" url="http://myserver:1234/{R:1}" logRewrittenUrl="true" />
</rule>
当我浏览到http://myserver/crm/时,它确实可以正确转换,但是当它获取子页面和链接时,它会得到一个空白结果。最终结果是一个没有错误的空白页面。
应该怎么做才能解决这个问题? (ARR代理已启用)
以下是主要请求的失败请求日志,然后是后续请求:
URL_REWRITE_START RequestURL="/crm/", Scope="Distributed", Type="Inbound"
RULE_EVALUATION_START RuleName="CrmInbound", RequestURL="crm/", QueryString="", PatternSyntax="Regex", StopProcessing="false", RelativePath="/"
PATTERN_MATCH Pattern="^crm/(.*)", Input="crm/", Negate="false", Matched="true"
REWRITE_ACTION Substitution="http://myserver:1234/{R:1}", RewriteURL="http://myserver:1234/", AppendQueryString="true", LogRewrittenURL="true"
RULE_EVALUATION_END RuleName="CrmInbound", RequestURL="http://myserver:1234/", QueryString="", StopProcessing="false", Succeeded="true"
GENERAL_SET_REQUEST_HEADER HeaderName="X-Original-URL", HeaderValue="/crm/", Replace="true"
URL_CHANGED OldUrl="/crm/", NewUrl="http://myserver:1234/"
URL_REWRITE_END RequestURL="http://myserver:1234/"
后续
URL_REWRITE_START RequestURL="/COCRM/_common/styles/fonts.css.aspx?lcid=1033&ver=768231620", Scope="Distributed", Type="Inbound"
RULE_EVALUATION_START RuleName="CrmInbound", RequestURL="COCRM/_common/styles/fonts.css.aspx", QueryString="lcid=1033&ver=768231620", PatternSyntax="Regex", StopProcessing="false", RelativePath="/"
PATTERN_MATCH Pattern="^crm/(.*)", Input="COCRM/_common/styles/fonts.css.aspx", Negate="false", Matched="false"
RULE_EVALUATION_END RuleName="CrmInbound", RequestURL="COCRM/_common/styles/fonts.css.aspx", QueryString="?lcid=1033&ver=768231620", StopProcessing="false", Succeeded="false"
URL_REWRITE_END RequestURL=""