Reverse proxy configuration for IIS

hi, anybody configured a reverse proxy setup on windows behind an IIS so far? Thought I’ll ask before I’ll make this a short night.

Michael

Yes! To set up an IIS reverse proxy on Windows:

  1. Install Prereqs:
    • URL Rewrite Module
    • Application Request Routing (ARR)

  2. Enable Proxy in IIS:
    • Click Server Node > Application Request Routing Cache.
    • Click Server Proxy Settings (right pane) > Check Enable proxy > Apply.

  3. Create Rewrite Rule:
    • Select your Web Site > open URL Rewrite.
    • Click Add Rules > select Reverse Proxy.
    • Enter your backend IP/port (e.g., localhost:8080).

  4. Common Pitfalls to Avoid:
    • If backend requires original domain: Run appcmd.exe set config -section:system.webServer/proxy /preserveHostHeader:"True" /commit:apphost
    • For WebSocket support: Ensure WebSockets IIS feature is installed.
    • Check that backend ports aren’t blocked by Windows Firewall.