Eu fiz os seguintes passos:
http://localhost ) Add Rule(s)...
Reverse Proxy
google.com como servidor no qual as solicitações HTTP serão fornecidas Enable SSL Offloading não verificados
OK
Quando eu acesso o http://localhost , ainda tenho meu próprio webapp, não google.com . No meu web.config eu tenho:
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{CACHE_URL}" pattern="^(https?)://" />
</conditions>
<action type="Rewrite" url="{C:1}://google.com/{R:1}" />
</rule>
</rules>
</rewrite>
Então, tentei adicionar mais regra útil: reescrevendo localhost/google/sth para google.com/search?q=sth .
Eu mudei web.config :
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="^google/(.*)" />
<conditions>
<add input="{CACHE_URL}" pattern="^(https?)://" />
</conditions>
<action type="Rewrite" url="{C:1}://google.com/search?q={R:1}" />
</rule>
</rules>
</rewrite>
E ainda não funciona.
Tags reverse-proxy rewrite iis