Reverse Proxy: plainly explained.

A reverse proxy sits in front of your servers to route, secure and speed up traffic. Learn how it works, with an Nginx example and use cases.

Webapp · Updated Nov 7, 2026

DEFINITION

A reverse proxy is a server that sits in front of web servers, receives client requests and forwards them to the right backend on their behalf.

CATEGORY

Webapp

RELATED

Load balancing, CDN

Summarize this page with AI

01

What is a reverse proxy?

A reverse proxy is a server placed between users and one or more backend servers. Visitors send their requests to the proxy, which forwards each one to the appropriate server and returns the response as if it came from a single origin. The client never talks directly to the application servers, which stay hidden behind it.

02

How a reverse proxy works

The flow has four steps: the browser resolves the domain through DNS to the proxy's address, the proxy receives the request, it picks a backend based on rules (path, host, headers, load), and it relays the response back, sometimes after modifying it. A minimal Nginx configuration looks like this:

server { listen 443 ssl; server_name example.com; location /api/ { proxy_pass http://127.0.0.1:3000; } }

Here, every request to /api/ is passed to an application listening on port 3000, while the rest of the site can be served from elsewhere.

03

What a reverse proxy is used for

  • Load balancing: spreading traffic across several servers to avoid overload (see load balancing).
  • TLS termination: handling HTTPS and the SSL certificate in one place instead of on every server.
  • Caching and compression: serving frequent responses without hitting the backend.
  • Security: hiding internal servers, filtering malicious requests and applying rate limiting.
  • Routing: exposing several services, for example microservices, under one domain.
04

Reverse proxy vs forward proxy vs CDN

Aspect
Acts on behalf ofReverse proxyThe serversForward proxyThe clientsCDNThe servers, at the edge
Typical positionReverse proxyIn front of the backendForward proxyIn front of users or a company networkCDNDistributed across many locations
Main goalReverse proxyRouting, security, performanceForward proxyAnonymity, filtering, access controlCDNFast delivery close to the user
ExamplesReverse proxyNginx, HAProxy, TraefikForward proxyCorporate web gatewayCDNCloudflare, Fastly

A CDN is in practice a network of reverse proxies spread around the world, which is why the two notions overlap.

05

Best practices and pitfalls

  • Forward the original client IP with headers such as X-Forwarded-For, otherwise the backend only sees the proxy.
  • Set sensible timeouts and health checks so a failing server is removed from rotation.
  • Keep security HTTP headers consistent at the proxy level.
  • Avoid making the proxy a single point of failure: run at least two instances for critical apps.
06

Reverse proxy and SEO

A reverse proxy can serve a blog or an app under a subfolder of the main domain instead of a subdomain, which keeps authority consolidated on one host. It must preserve canonical URLs, status codes and headers, or search engines may index the wrong address.

07

Reverse proxy at BeBranded

On our web app projects, we put a reverse proxy or an edge layer in front of the application to handle HTTPS, caching and routing, so the product stays fast and secure as traffic grows. Discover our web apps service.

FAQ

Questions about Reverse Proxy.

Another question?

Write to us
What is a reverse proxy?
A reverse proxy is a server in front of one or more backend servers. It receives client requests, forwards them to the right server and returns the response.
What is the difference between a reverse proxy and a forward proxy?
A forward proxy acts for the clients and hides their identity. A reverse proxy acts for the servers and hides the backend infrastructure.
What is the difference between a reverse proxy and a load balancer?
A load balancer distributes traffic across servers. A reverse proxy does this too, but also handles caching, TLS, routing and security. Many reverse proxies include load balancing.
Is a CDN a reverse proxy?
In practice yes. A CDN is a network of reverse proxies placed close to users, which cache and deliver content from the edge.
Which software can be used as a reverse proxy?
Common choices are Nginx, HAProxy, Traefik and Caddy, as well as managed services such as Cloudflare.
Does a reverse proxy improve security?
Yes. It hides internal servers, terminates TLS, filters malicious requests and can apply rate limiting, but it must itself be kept up to date and configured correctly.

Related

Related terms, and where to go next.

BeBranded
Development

Website maintenance pricing in 2026: costs, retainers and what a contract should include

What website maintenance costs in 2026, by type of service and by platform, with real public prices, what a maintenance contract must include, and how to avoid paying for a retainer you do not use.

Read the article
Bolt.new: the revolution of ultra-fast no-code web development
AI & automation

Bolt.new: the revolution of ultra-fast no-code web development

Discover Bolt.new, the AI platform that generates complete web applications in minutes. How it works, real use cases, limits and pricing.

Read the article
How to select the right no-code tools
No-Code

How to select the right no-code tools

Learn how to select the right no-code tools for your needs. Essential criteria, common mistakes to avoid, and practical tips for successful digital projects.

Read the article

Let’s talk

Tell us what you want to build.

Thirty minutes with the people who will work on your project. You leave with a clear view of the scope, the timeline and the next steps.

What happens next

  1. 1A 30-minute callWe listen to your goals, your constraints and your context.
  2. 2A clear scopeWe map what is worth doing first, and what it takes.
  3. 3A costed proposalYou decide, with no commitment and no sales pitch.