Load Balance Reverse Proxy

I’ve been searching the docs and forum high and low.
How does one create a simple load balancer for a reverse proxy.

myurl.com {
proxy /staging {


So I want to add etc to the /staging endpoint and loadbalance between the two.

Did you see the proxy docs? https://caddyserver.com/docs/proxy - does that page answer your question at all? (The examples section maybe?)

1 Like

Just add the second host to the end of the proxy line, after the first one.

1 Like

Thank you very much, sorry I didn’t see it under the plugins before.

You’re welcome - hope that helps. :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.