October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
caching

What Is a Reverse Proxy? How It Works, Benefits, and Configuration

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A reverse proxy is a public-facing server that receives requests for one or more private backend servers. The browser or API client connects to the reverse proxy; the proxy chooses an origin, forwards the request, receives the response, and returns it to the client. Depending on its configuration, it can also terminate TLS, cache responses, route by hostname or path, balance traffic, run health checks, and filter requests.

Those are capabilities, not automatic guarantees. A reverse proxy does not inherently encrypt every network hop, make an origin impossible to discover, or improve every workload’s speed. Its result depends on the software, topology, rules, and trust configuration.

How a reverse proxy works

Without a reverse proxy, a client may connect directly to an application server. With one, the proxy becomes the public endpoint and the application server becomes an origin behind it.

  1. The client resolves the public hostname and opens a connection to the reverse proxy.
  2. The proxy accepts the HTTP, HTTPS, TCP, or other supported traffic.
  3. It selects an upstream server using rules such as hostname, URL path, port, health, or load-balancing algorithm.
  4. It forwards the request, often adding controlled forwarding headers.
  5. The upstream returns a response.
  6. The proxy may cache, compress, filter, transform, or log that response before sending it to the client.

NGINX summarizes the basic HTTP exchange this way: “When NGINX proxies a request, it: Sends the request to a specified proxy server Fetches the response Sends the response back to the client.” A reverse proxy can also pass requests to application servers through protocols such as FastCGI, uwsgi, SCGI, and memcached.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
  • Dual band router upgrades to 1200 Mbps high speed internet (300mbps for 2.4GHz plus 900Mbps for 5GHz), reducing buffering and ideal for 4K stream
  • Full Gigabit Ports - Gigabit Router with 4 Gigabit LAN ports, ideal for any internet plan and allow you to directly connect your wired devices
  • Boosted Coverage - Four external antennas equipped with Beamforming technology extend and concentrate the Wi-Fi signals
  • MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home

Reverse proxy versus forward proxy

The distinction is whose side the proxy represents:

Characteristic Forward proxy Reverse proxy
Represents Clients going out to the internet Servers receiving inbound traffic
Typical placement Between users or devices and destination servers Between internet clients and origin servers
Common purpose Outbound access control, privacy, or policy Routing, load balancing, caching, TLS handling, and origin protection
What the destination sees The forward proxy may appear as the requester The origin may see the reverse proxy unless trusted forwarding headers are used

A simple memory aid is “forward proxy for clients going out; reverse proxy for servers receiving traffic.”

What a reverse proxy can do

Route requests

Rules can send api.example.com to an API cluster, www.example.com to a web cluster, or /images/ to an object-storage or media service. This lets several applications share one public address while remaining separately deployable.

Balance load across backends

A proxy can distribute requests across healthy servers. Common Layer 7 HTTP/HTTPS methods include round robin, least connections, least time, and hashing; the available methods depend on the product edition. Health checks can remove an unhealthy endpoint and restore it when it recovers. Session affinity (“sticky sessions”) can keep a user on one backend, but it reduces flexibility and does not replace shared session storage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not confuse proxy load balancing with DNS-only distribution. DNS-only balancing returns endpoint addresses through DNS and depends on resolver caches, so failover can be slower and origin IP addresses remain exposed. A proxied Layer 7 design can make routing decisions on each request and integrate with other proxy controls.

Cache eligible responses

The proxy may store a response and serve later requests without contacting the origin. This can reduce origin work and latency for cacheable, repeatable content. The result depends on cache headers, keys, variation by cookies or authorization, invalidation rules, object size, and hit rate. Personalized pages, private responses, rapidly changing data, and responses marked not to cache should generally bypass shared caching.

Rank #2
Sale
TP-Link ER605, Wired Gigabit VPN Router
  • 【Five Gigabit Ports】1 Gigabit WAN Port plus 2 Gigabit WAN/LAN Ports plus 2 Gigabit LAN Port. Up to 3 WAN ports optimize bandwidth usage through one device.
  • 【One USB WAN Port】Mobile broadband via 4G/3G modem is supported for WAN backup by connecting to the USB port. For complete list of compatible 4G/3G modems, please visit TP-Link website.
  • 【Abundant Security Features】Advanced firewall policies, DoS defense, IP/MAC/URL filtering, speed test and more security functions protect your network and data.
  • 【Highly Secure VPN】Supports up to 20× LAN-to-LAN IPsec, 16× OpenVPN, 16× L2TP, and 16× PPTP VPN connections.
  • Security - SPI Firewall, VPN Pass through, FTP/H.323/PPTP/SIP/IPsec ALG, DoS Defence, Ping of Death and Local Management. Standards and Protocols IEEE 802.3, 802.3u, 802.3ab, IEEE 802.3x, IEEE 802.1q

Terminate TLS

The proxy can accept HTTPS, present the certificate, decrypt the request, and forward HTTP or HTTPS to the origin. TLS termination centralizes certificates and can reduce cryptographic work on application servers. It does not automatically encrypt the proxy-to-origin leg: configure HTTPS upstream connections when that network path requires encryption, and validate origin certificates where appropriate.

Hide and control the origin

Clients normally see the proxy’s public address rather than the origin’s address. Restrict firewall access so origins accept traffic only from the proxy network or other approved systems. This reduces direct exposure, but it is not an absolute security guarantee. Misconfigured DNS, mail, monitoring, legacy services, or leaked addresses can still reveal an origin.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Apply edge controls

Depending on the implementation, the proxy can enforce request-size limits, authentication gates, rate limits, redirects, compression, access rules, logging, and protocol upgrades such as WebSockets. These controls must be explicitly configured and tested.

Layer 7 and Layer 4 choices

Layer 7 (HTTP/HTTPS) proxies understand hostnames, paths, methods, headers, cookies, and status codes. They are appropriate for application routing, HTTP caching, redirects, and web security rules. Layer 4 proxies forward TCP or UDP connections without interpreting HTTP, which supports non-HTTP protocols and can reduce application-level control. Choose based on the protocol and the decisions you need to make, not on the label alone.

Client IP addresses and trusted headers

At the backend, a proxied request can appear to come from the proxy’s address. The standardized Forwarded header and the widely used X-Forwarded-For header can carry the original client address. Your application must trust these headers only when the request came from known proxy infrastructure; otherwise a client can send forged values.

Rank #3
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
  • Dual-band Wi-Fi with 5 GHz speeds up to 867 Mbps and 2.4 GHz speeds up to 300 Mbps, delivering 1200 Mbps of total bandwidth¹. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance to devices, and obstacles such as walls.
  • Covers up to 1,000 sq. ft. with four external antennas for stable wireless connections and optimal coverage.
  • Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home
  • Advanced Security with WPA3 - The latest Wi-Fi security protocol, WPA3, brings new capabilities to improve cybersecurity in personal networks

Configure the proxy to replace or append forwarding values according to your topology, then configure the framework to trust exactly the proxy ranges or hop count you operate. Use the trusted value for auditing, rate limiting, and security decisions only after that boundary is enforced.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Managed service or self-operated software?

Decision axis Managed reverse proxy Self-operated proxy
Operations Provider runs the edge fleet, certificates, and much of the maintenance Your team installs, patches, monitors, and scales it
Control Convenient controls within provider limits Fine-grained configuration and deployment control
Protocols Verify support for every required HTTP, TCP, UDP, or upgrade path You choose software and topology, but must operate them
Failover Provider features and health behavior apply You design health checks, capacity, and recovery
Origin exposure Can be reduced if DNS and firewall rules are correct Same requirement; the proxy does not secure an open origin by itself

Cloudflare is an example of a managed network of servers placed in front of web servers. NGINX is an example of software a team can operate itself, including upstream groups and application-layer balancing. Neither approach is universally best; compare required protocols, routing, health behavior, caching, identity propagation, operational control, and provider dependency.

A minimal self-managed NGINX configuration

The following example sends HTTPS traffic at the proxy to two application servers. Adapt certificate paths, names, ports, and trust settings before using it in production.

upstream app_backend {
    least_conn;
    server 10.0.0.11:8080;
    server 10.0.0.12:8080;
}

server {
    listen 443 ssl;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    location / {
        proxy_pass http://app_backend;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_http_version 1.1;
    }
}

After syntax validation with nginx -t, reload the service using your operating system’s service manager. Add explicit timeouts, buffering, WebSocket upgrade headers, cache rules, and upstream TLS only when your application requires them. A production design also needs certificate renewal, logs, metrics, capacity limits, health checking, and a tested rollback.

Performance, reliability, and cost considerations

  • Performance: caching and connection reuse can reduce origin work; TLS termination and request inspection add proxy work. Measure end-to-end latency and origin time rather than assuming a gain.
  • Reliability: run redundant proxy instances or use a managed service with an appropriate failure design. A single proxy is a single point of failure.
  • Capacity: size for concurrent connections, TLS handshakes, request rate, response buffering, uploads, and peak bandwidth. Include headroom for deployments and failed nodes.
  • Consistency: define cache invalidation, deployment draining, timeout, retry, and idempotency behavior. Retrying a non-idempotent request can create duplicate work.
  • Cost: account for proxy compute, bandwidth, provider transfer charges, logging, certificates, monitoring, and engineering time. No universal price or performance figure applies without a specific provider and workload.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting reverse-proxy failures

502 Bad Gateway or connection refused

Check that the upstream process is running, the proxy can reach its private address and port, firewall rules permit the connection, and the configured protocol matches the backend. Inspect proxy error logs and test the backend directly from the proxy host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.

504 Gateway Timeout

The backend did not respond within the configured timeout. Investigate slow database calls, exhausted worker pools, network loss, and an overly short proxy timeout. Do not simply raise the timeout without finding the bottleneck.

Redirect loops or incorrect HTTP/HTTPS detection

Pass the original scheme, commonly with X-Forwarded-Proto, and configure the application to trust it only from the proxy. Ensure the proxy’s TLS-termination policy and the application’s canonical URL agree.

Wrong client IP in logs or rate limits

Configure one canonical forwarding-header policy and trust only known proxy addresses. Remove client-supplied forwarding values at the edge when necessary; otherwise attackers can spoof them.

WebSockets or streaming requests fail

Confirm that the selected proxy mode supports the protocol, enable the required connection-upgrade headers, and review buffering and idle timeouts. Layer 4 forwarding may be more suitable when HTTP inspection is unnecessary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Stale or private data is served

Review cache keys, Cache-Control and Vary headers, cookie handling, authorization bypass rules, and purge behavior. Disable shared caching for responses that contain user-specific information unless the design explicitly isolates them.

Best Value
TP-Link Dual-Band AX3000 Wi-Fi 6 Wireless Gigabit Internet Router for Home
  • Next-Gen Gigabit Wi-Fi 6 Speeds: 2402 Mbps on 5 GHz and 574 Mbps on 2.4 GHz bands ensure smoother streaming and faster downloads; support VPN server and VPN client¹
  • A More Responsive Experience: Enjoy smooth gaming, video streaming, and live feeds simultaneously. OFDMA makes your Wi-Fi stronger by allowing multiple clients to share one band at the same time, cutting latency and jitter.²
  • Expanded Wi-Fi Coverage: 4 high-gain external antennas and Beamforming technology combine to extend strong, reliable, Wi-Fi throughout your home.
  • Improved Battery Life: Target Wake Time helps your devices to communicate efficiently while consuming less power.
  • Improved Cooling Design: No heat ups, no throttles. A larger heat sink and redefined case design cools the WiFi 6 system and enables your network to stay at top speeds in more versatile environments.

Or skip the browser setup

If your goal is to obtain clean website screenshots rather than operate a browser and proxy stack yourself, ScreenshotNeo provides a website screenshot API and MCP server. A single GET request returns PNG, JPEG, WebP, or PDF output.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo documentation for request options. Before capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing result. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for the free plan.

Frequently Asked Questions

Can a reverse proxy serve several domains?

Yes. Host-based routing can select different upstream groups for different domain names, provided DNS, certificates, and proxy rules are configured for each domain.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does a reverse proxy replace a firewall?

No. It can enforce application-layer rules, but network firewalls, origin allow-lists, authentication, patching, and monitoring remain separate controls.

Should traffic between proxy and origin use HTTPS?

Use HTTPS when that network segment is untrusted or policy requires encryption. TLS at the public proxy alone does not encrypt the upstream leg.

The Bottom Line

A reverse proxy is the controlled front door to backend services: it can route, balance, cache, terminate TLS, and centralize policy, but each benefit must be configured and verified for your protocol, trust boundaries, and failure model.

Quick Recap

Bestseller No. 1
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
$44.99
SaleBestseller No. 2
Bestseller No. 3
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
$34.99
SaleBestseller No. 4
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$69.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.