Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Using variable in pattern

$
0
0

Here is how I want to use "HTTP_SOMEVARIABLE" in pattern.

<outboundRules>
                <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                    <match filterByTags="A, Form, Img" pattern="^http(s)?://{HTTP_SOMEVARIABLE}/(.*)" />
                    <action type="Rewrite" value="http{R:1}://reverseproxyaddress/{R:3}" />
                </rule>
                <preConditions>
                    <preCondition name="ResponseIsHtml1">
                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                    </preCondition>
                </preConditions>
            </outboundRules>

Is it possible to use variable in pattern? if yes how?


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>