What Is a Reverse Proxy Explained
SkillVeris Team
Cloud & Security Team

A reverse proxy is a server that sits in front of one or more backend servers, receiving client requests and forwarding them to the right backend.
In this guide, you'll learn:
- It differs from a forward proxy, which acts on behalf of clients; a reverse proxy acts on behalf of servers.
- Reverse proxies enable load balancing, SSL termination, caching, compression, and a single entry point for many services.
- They improve security by hiding backend servers and centralizing TLS and access control.
- Popular reverse proxies include Nginx, HAProxy, Envoy, and cloud load balancers.
1What Is a Reverse Proxy?
A reverse proxy is a server that sits in front of one or more backend servers and forwards client requests to them, then returns the backend's response to the client. From the client's perspective, the reverse proxy is the website — it never sees or connects directly to the servers doing the actual work behind it.
This intermediary position lets a reverse proxy handle cross-cutting concerns in one place: distributing load, terminating encryption, caching responses, and shielding backends from direct exposure. Nginx, HAProxy, and Envoy are common examples, as are the managed load balancers offered by cloud providers.
2Reverse Proxy vs Forward Proxy
The key distinction is which side the proxy represents. A forward proxy sits in front of clients and makes requests on their behalf, often to filter outbound traffic or hide the client's identity — think of a corporate proxy controlling employee internet access. A reverse proxy sits in front of servers and represents them to the outside world.
Put simply, a forward proxy hides the client from the server, while a reverse proxy hides the servers from the client. Both relay traffic, but they face opposite directions and solve different problems.
- Forward proxy: acts for clients, hides the client, controls outbound access.
- Reverse proxy: acts for servers, hides the backends, controls inbound traffic.
- Forward proxy is configured by clients; reverse proxy is configured by the service owner.
- Clients often do not know a reverse proxy exists at all.
3What a Reverse Proxy Does
A reverse proxy earns its place by consolidating several important functions at the network edge. Instead of building load balancing, encryption, and caching into every backend service, you handle them once at the proxy, keeping backends simpler and consistent.
These capabilities are why nearly every production web application sits behind one. The proxy becomes the single, well-defended front door through which all traffic must pass.
- Load balancing: spread requests across many backend servers.
- SSL/TLS termination: decrypt HTTPS at the proxy so backends handle plain traffic.
- Caching: store and serve frequent responses without hitting the backend.
- Compression: shrink responses to speed up delivery.
- Routing: send different paths or hostnames to different backend services.
💡One Front Door
Placing a reverse proxy in front of many microservices gives clients a single endpoint. The proxy routes each request to the right service based on the URL path or hostname.
4Load Balancing and SSL Termination
Two of the most valuable jobs a reverse proxy performs are load balancing and SSL termination. As a load balancer, it distributes incoming requests across a pool of identical backends using strategies like round robin or least connections, and it stops sending traffic to any backend that fails a health check.
SSL termination means the proxy holds the TLS certificate and handles the encryption and decryption, so each backend does not need its own certificate or the CPU cost of cryptography. This centralizes certificate management to one place and simplifies renewing and rotating certificates.
A Minimal Nginx Example
A basic Nginx reverse proxy forwards requests to an upstream group of backend servers. The upstream block lists the backends, and the proxy_pass directive sends matching requests to them.
upstream app { server 10.0.0.1:8000; server 10.0.0.2:8000; }
server {
listen 443 ssl;
location / { proxy_pass http://app; }
}5Security and Performance Benefits
By standing between clients and backends, a reverse proxy improves security. Backend servers are never exposed directly to the internet, so their addresses stay hidden and they accept traffic only from the proxy. The proxy becomes the place to enforce rate limiting, filter malicious requests, and integrate a web application firewall.
It also boosts performance. Caching frequently requested content means many responses never reach the backend at all, and compression reduces bandwidth. Offloading TLS work frees backend CPU for application logic. Together these make the whole system faster and more resilient under load.
6Common Mistakes to Avoid
Reverse proxies are powerful but easy to misconfigure in ways that cause outages or subtle bugs.
- Making the proxy a single point of failure with no redundancy behind it.
- Forgetting to forward the client's real IP, so backends log the proxy's address instead.
- Misconfiguring health checks, so the proxy keeps routing to dead backends.
- Caching responses that should be personalized, serving one user's data to another.
- Leaving default timeouts that drop long-running requests unexpectedly.
⚠️Preserve the Client IP
Without forwarding headers like X-Forwarded-For, every backend log shows the proxy's IP, breaking analytics and rate limiting. Configure the proxy to pass the original client address.
7Common Reverse Proxy Tools
Several mature tools dominate the reverse proxy space, each with its own strengths. Nginx is prized for its speed and doubles as a web server, while HAProxy is renowned for high-performance load balancing at large scale. Envoy and Traefik were built for the dynamic world of containers and microservices, discovering backends automatically as they come and go.
Cloud providers also offer fully managed reverse proxies and load balancers, removing the need to run and patch the software yourself. Choosing among them depends on your scale, whether you run containers, and how much you want to operate versus outsource.
- Nginx: fast, versatile, also a web server and static file host.
- HAProxy: specialized, high-performance load balancing.
- Envoy and Traefik: container-native with automatic service discovery.
- Managed options: AWS ALB, Google Cloud Load Balancing, Azure Application Gateway.
8Key Takeaways
A reverse proxy is the versatile front door of modern web architecture.
- It sits in front of backends, receiving client requests and forwarding them on.
- A forward proxy represents clients; a reverse proxy represents servers.
- It enables load balancing, SSL termination, caching, compression, and routing.
- It improves security by hiding backends and centralizing TLS and access control.
- Nginx, HAProxy, Envoy, and cloud load balancers are common implementations.
9Frequently Asked Questions
Q: What is the difference between a reverse proxy and a forward proxy? A: A forward proxy sits in front of clients and makes requests on their behalf, hiding the client from servers, while a reverse proxy sits in front of servers and forwards client requests to them, hiding the backends from clients. They face opposite directions.
Q: Is a load balancer the same as a reverse proxy? A: A load balancer is one function a reverse proxy commonly performs, distributing requests across multiple backends. All load balancers act as reverse proxies, but a reverse proxy can also do caching, SSL termination, and routing beyond just balancing load.
Q: What is SSL termination? A: SSL termination is when the reverse proxy decrypts incoming HTTPS traffic and forwards it to backends as plain HTTP within a trusted network. It centralizes certificate management and removes the encryption workload from each backend server.
Q: What software is used as a reverse proxy? A: Nginx and HAProxy are among the most widely used, along with Envoy and Traefik for containerized environments. Cloud providers also offer managed reverse proxies and load balancers, such as AWS Application Load Balancer, that require no server management.
Related Reading
Get The Print Version
Download a PDF of this article for offline reading.
About the Publisher
SkillVeris Team
Cloud & Security Team
Our cloud and security experts break down complex infrastructure topics into practical, beginner-friendly guides.
View all postsRelated Posts
Never miss an update
Get the latest tutorials and guides delivered to your inbox.
No spam. Unsubscribe anytime.