IIS Reverse Proxy on a Windows VPS: URL Rewrite and ARR Setup in Order

Running IIS behind a reverse proxy lets a single Windows VPS host multiple sites, terminate TLS in one place, and hide backend applications behind a stable front door. The two IIS extensions that make this work — URL Rewrite and Application Request Routing (ARR) — are free but configured in a specific order that trips up most first-time setups. This guide walks the sequence. For platform basics, see our Windows VPS overview.

Install in the Right Order

Install URL Rewrite first, then ARR. ARR depends on URL Rewrite, and installing them in the wrong order leaves the proxy feature unavailable until both are reinstalled. After installation, open IIS Manager and enable the proxy at the server level in the ARR Cache settings; the proxy is off by default, which is a frequent reason rewrites appear to do nothing.

The Rewrite Rule for a Backend

Create a site in IIS that will act as the public front door and bind it to your public hostname with the TLS certificate. Add a rewrite rule that matches the path and rewrites to the backend address, for example http://localhost:5000/{R:1}. Set the rule’s action type to Rewrite, and append the query string. If the backend is a different machine, use its private IP. Test with a path that returns identifiable content from the backend.

Add a second, non-proxied rule for static files if you want IIS to serve them directly and cut backend load. Order matters: the static rule must evaluate before the catch-all proxy rule.

Forwarding the Real Host and Client IP

A backend behind a proxy sees the proxy’s address unless you forward the original headers. Configure ARR to preserve the host header, and add server variables X-Forwarded-For and X-Forwarded-Proto to the allowed server variables list, then set them in the rewrite rule. Without these, backend applications log the wrong client IP and generate absolute URLs with the internal hostname, breaking redirects and cookies.

RDP and IIS Interaction

A common symptom after enabling the proxy is that the public site works but the RDP session to the same host becomes sluggish, because ARR’s caching and compression compete for the same CPU and memory. On a modest VPS, disable response caching for dynamic backends and keep compression to one layer. Monitor memory; ARR by default reserves a large cache, which you can cap in the ARR settings to leave headroom for the rest of the server.

TLS Termination in One Place

Terminating TLS at the IIS front door centralizes certificate management: one certificate, one renewal job, one binding. Backends can then speak plain HTTP on localhost, which is safe because the traffic never leaves the machine. Use win-acme or a similar ACME client to automate renewal and add a scheduled task to reload the site binding after renewal; IIS does not always pick up a new certificate without a reload.

A Verification Pass

After configuring, verify five things: the public hostname serves the backend content, redirects keep the correct public hostname, the backend logs the real client IP, static files are served by IIS rather than the backend, and TLS is valid on both the apex and www names. Each check catches one class of misconfiguration, and running them in order isolates exactly which is wrong.

URL Rewrite plus ARR turns a single Windows VPS into a clean reverse proxy for multiple sites, provided you install in order, enable the proxy, forward the original headers, and manage certificates in one place. See the Windows VPS overview for plan options that include the memory to spare for the proxy cache.

Leave a Comment