🌍Reverse Proxy
Also known as Reverse Proxy Server
A server in front of your apps. It takes each request and passes it on.
Think of it like
It is like the front desk at an office. Visitors talk to the desk, and the desk passes notes in.
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.
Definition
Example code
nginx
location / {
proxy_pass http://127.0.0.1:3000;
}Common mistake
Key takeaways
- 1In front of servers. Takes every request first.
- 2Hides the back. Visitors never reach the app directly.
- 3Does extra jobs. TLS, caching and limits.