Does Caddy have a similar directive like "location" in Nginx?

Assume I’m trying to proxy some paths but do something else to the others, is there a handy way to simplify the code below, combine all the paths with the same server in one block?

domain.me {
proxy / https://backend
proxy /A localhost:1234
proxy /B localhost:5678
}

domain.me/C {
root /X
}

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