Search code examples
reverse-proxyiis-8windows-server-2016

IIS Reverse Proxy on top site


I have a site (ex: a.domain.com) with multiple applications inside (ex: a.domain.com/App1, a.domain.com/AppX).

I need to figure out how to do a reverse proxy on the top site, only when the people try to access a.domain.com. If someone wants to access a.domain.com/App1 the reverse proxy will have no effect.

Thanks in advance!


Solution

  • May I know how did you set the reverse proxy?

    In IIS, we usually use URL rewrite rule to build the reverse proxy.

    If you only require reverse proxy rule only take effect on the root www.doamin.com. Then you should add an <add input="{URL}" pattern="^(/)?$" />condition pattern in your rule or include all folder/URL under the top site. Otherwise you have to use regex expression to exclude all 288 applications manually. IIS won't be able to detect sub-application collection and add them to URL rewrite rule automatically.