Quiz

  1. Could you go through how proxies work again?

    Sure. Setting up a proxy is just a relay:

    1. Apache (or Nginx or others) receives the request from the browser
    2. The proxy decides where to send the request
    3. sends a new request to internal server (e.g. http://localhost:3000/)
    4. The app generates a response
    5. sends the response to the Proxy (simple HTTP)
    6. Proxy encrypts the response (for HTTPS)
    7. 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