none
UrlRewrite for reverse proxy on IIS

    Question

  • Hi,

    I have a situation where I need to host node server behind IIS on the same machine. I wanted to create an application under the Default Web Site in IIS running on ports 80. I want the application to reroute the urls to the node server listening on port say 3000. I tried using the Urlrewrite to create a reverseproxy rule to send all the requests to the node server. I am facing problems trying to load the static files. I tried different Urlrewrite pattern matches but could not get this to work. Can someone suggest me what would be the best way to configure the urlrewrites so that have the routes sent to the node server while the static files loaded from where my IIS application is pointed to?

    Example: http://mysite.com/webapp -> load static files

    http://mysite.com/webapp -> reroute the routes to http://mysite.com:3000

    • Moved by litdev Thursday, March 26, 2015 7:40 PM
    Wednesday, March 25, 2015 7:58 PM

Answers