Skip to content
BENIBIX Learn

Reverse Proxy vs Forward Proxy

People think a reverse proxy is just a proxy, and the two face opposite ways. A forward proxy works for users. It sits in front of their browsers and goes out to the web for them. A reverse proxy works for servers. It sits in front of them and takes requests coming in. Both pass traffic on, which is why the names get mixed up.

Infrastructure🌍 Web Serving & Nginx

Reverse Proxy

A server in front of your apps. It takes each request and passes it on.

A reverse proxy is a server that sits in front of your app servers and takes every request first. It passes each one on to a server behind it and sends the answer back. Visitors never talk to the app servers directly. On the way, it can handle TLS, cache answers, block bad traffic and share the load.

Example
Lucy's shop app listens only on localhost port 3000. Nginx takes HTTPS requests on port 443 and passes them to the app.
Why it matters
It gives many apps one safe front door. TLS, logs and limits are set up in one place.
Full entry
Infrastructure🌐 Networking

Proxy Server

A go-between server that sends your requests on for you. Sites see it, not you.

A proxy server is a machine that makes requests for you. Your device sends its request to the proxy, and the proxy passes it on to the site. The site sees the proxy's address, not yours. Schools and offices use proxies to filter sites and log traffic. This kind is also called a forward proxy, because it works for the users.

Example
At Emma's school, every web request goes through a proxy. It blocks game sites and keeps a log of the rest.
Why it matters
It lets one place filter, log or speed up traffic for a whole group of users.
Full entry

In one line

Reverse Proxy
A server in front of your apps. It takes each request and passes it on.
Proxy Server
A go-between server that sends your requests on for you. Sites see it, not you.