Difference between revisions of "IIS as Reverse Proxy"

From MgmtWiki
Jump to: navigation, search
(Created page with "==Full Title== Using Windows Server as a Reverse Proxy for IIS 8 and above (Server 2012 and above). ==Context== * It is often necessary to us a Reverse Proxy to terminate HTTP...")
 
(Example)
Line 6: Line 6:
 
==Example==
 
==Example==
 
Goal: Redirect https: requests to a separate IIS instance (or site) which only supports http: scheme.
 
Goal: Redirect https: requests to a separate IIS instance (or site) which only supports http: scheme.
 +
#Open the Server Manager - select the computer to run manager and "add Roles and Features Wizard
 +
#Select "Role-based or feature-based Installation - click next
 +
#Select Server - click next
 +
 
#Open Internet Information services (IIS) manager (for example from administrative tools)
 
#Open Internet Information services (IIS) manager (for example from administrative tools)
 
#Click on the Server in the left pane (click a second time if you don't see sites)
 
#Click on the Server in the left pane (click a second time if you don't see sites)
Line 12: Line 16:
 
#Double click on "URL Rewrite" in the center pane. - the assumption here is that there are no existing rules, if there are it gets complicated.
 
#Double click on "URL Rewrite" in the center pane. - the assumption here is that there are no existing rules, if there are it gets complicated.
 
#Click "Add Rule" in the right pane.
 
#Click "Add Rule" in the right pane.
 
 
  
 
==References==
 
==References==

Revision as of 14:03, 8 November 2019

Full Title

Using Windows Server as a Reverse Proxy for IIS 8 and above (Server 2012 and above).

Context

  • It is often necessary to us a Reverse Proxy to terminate HTTPS requests and then forward those requests to specific server instances for load balancing or similar services.

Example

Goal: Redirect https: requests to a separate IIS instance (or site) which only supports http: scheme.

  1. Open the Server Manager - select the computer to run manager and "add Roles and Features Wizard
  2. Select "Role-based or feature-based Installation - click next
  3. Select Server - click next
  1. Open Internet Information services (IIS) manager (for example from administrative tools)
  2. Click on the Server in the left pane (click a second time if you don't see sites)
  3. Click on sites
  4. Clink on (typically) Default Web Site (the rewrite rules created here will apply to all of the sub-sites, which is probably the place to be)
  5. Double click on "URL Rewrite" in the center pane. - the assumption here is that there are no existing rules, if there are it gets complicated.
  6. Click "Add Rule" in the right pane.

References