Redirecting requests from your .NET Web application to the UGC Community service microservice using a reverse proxy

In IIS Manager, create URL rewrite rules to redirect incoming Web requests to the microservice.

Before you begin

To perform this task, you need to have the following IIS add-ons installed:
  • URL Rewrite
  • Application Request Routing (ARR)

If you do not already have these add-ons installed, you can download and install both using the Microsoft Web Platform Installer (WebPI for short), which is available here: http://www.microsoft.com/web/downloads/platform.aspx

Procedure

  1. On the Windows machine that contains your .NET Web application, open Internet Information Services (IIS) Manager.
  2. In the tree view, navigate to the .NET Web application.
  3. In the IIS area of the content view, double-click URL Rewrite.
  4. In the Actions pane, select Add Rule(s).
  5. In the Add Rule(s) dialog that opens, in the Inbound and Outbound Rules area, select Reverse Proxy and click OK.
    The dialog closes and an Add Reverse Proxy Rules dialog opens.
  6. In the Inbound Rules area, under Enter the server name or the IP address where HTTP requests will be forwarded, enter the URL of the UGC Community Service, but without the leading http://. If you installed to a default port, you enter localhost:8085/community.svc in the field.
  7. Click OK to submit your changes.
  8. Close IIS Manager.

Results

All requests to the .NET Web application are now redirected to the microservice you configured.