Glossary termNetwork component

Reverse Proxy

Server that sits in front of one or more backend servers, receiving client requests on their behalf and forwarding them to the right destination.

A reverse proxy accepts requests from clients, typically web browsers, passes them to servers behind it and returns the responses as though it had produced them itself. Clients see only the proxy's address. This is the mirror image of a forward proxy server, which acts on behalf of clients and hides them from the servers they contact; a reverse proxy acts on behalf of servers and hides them from clients. Most large websites place one or more reverse proxies at the edge of their infrastructure.

Because every request passes through it, a reverse proxy is a convenient place to handle work that would otherwise be repeated on each backend. Common functions include terminating TLS encryption, compressing and caching responses, routing requests to different applications by host name or path and distributing load across several servers. Widely used reverse proxies include NGINX, HAProxy, Apache HTTP Server with its proxy modules, Caddy and Traefik. In Self-Hosting setups, a single reverse proxy often fronts many services on one machine, each reached through its own domain name.

Reverse proxies have a significant security role. Hiding backend servers reduces the attack surface exposed to the internet, and the proxy can enforce rate limits, filter malicious requests as a web application firewall and absorb traffic spikes. Commercial edge networks operate reverse proxies at global scale for the same reasons. The arrangement has costs: the proxy becomes a critical dependency and a point where encrypted traffic is decrypted, and backend applications must be configured to trust the forwarded headers that carry the original client address, or they may log or authorize requests incorrectly.

Key points

  • A forward proxy acts for clients, while a reverse proxy acts for servers and hides them from clients.
  • Reverse proxies commonly terminate TLS, cache responses and route requests to different backends.
  • Hiding origin servers behind a reverse proxy reduces the attack surface exposed to the internet.
  • Backend applications must handle forwarded headers carefully to see the real client address.

Related entries

Glossary term

Proxy Server

OPSECDevOps

Intermediary server that forwards requests between clients and other servers, used for caching, filtering, load balancing, privacy and access control.

Glossary term

Device or software that distributes incoming network traffic across multiple servers to improve capacity, responsiveness and availability.

Technology

NGINX

DevOpsFOSS

Free and open-source web server, reverse proxy and load balancer built on an event-driven design that handles many concurrent connections efficiently.

Glossary term

Geographically distributed network of servers that caches and delivers web content from locations close to users to improve speed and reliability.

Glossary term

Transport Layer Security

CybersecurityProgramming

Cryptographic protocol that encrypts and authenticates data sent between applications over a network, most visibly securing web traffic as HTTPS.

Glossary term

Self-Hosting

OPSECFOSSDevOps

Practice of running one's own servers and software for services such as email, file storage or media instead of relying on third-party platforms.

Glossary term

Firewall

CybersecurityOPSEC

Security control that monitors network traffic and allows or blocks connections according to a set of rules, separating trusted and untrusted networks.

Featured in guides

Referenced by

Other entries that discuss or point to Reverse Proxy.