Web / Caddy Server Interview questions
What is the purpose of the reverse_proxy directive?
The reverse_proxy directive forwards incoming client requests to one or more backend services (upstreams) and returns their response to the client, letting Caddy sit in front of application servers written in any language.
example.com { reverse_proxy localhost:3000 }
This block sends every request for example.com to a local process listening on port 3000. The directive also accepts a list of upstreams for load balancing, health-check options, and header manipulation, all inside the same block when needed.
More Related questions...