Quiz
- Could you go through how proxies work again?
Sure. Setting up a proxy is just a relay:
- Apache (or Nginx or others) receives the request from the browser
- The proxy decides where to send the request
- sends a new request to internal server (e.g.
http://localhost:3000/) - The app generates a response
- sends the response to the Proxy (simple HTTP)
- Proxy encrypts the response (for HTTPS)
- Proxy sends the response to the browser
This has several advantages:
- Hides our server from the outside
- Handles HTTPS for us
- Possibly cache or compress responses
- Does logging, other stuff