So, when I visited document, I did ctrl+f for try, hence I couldn’t find anything.
what exactly to does? I thought it is used in rewriting the paths but does it also make Caddy look into the locations?
So I found this old thread which seems to do what I was trying to accomplish: Serve files in root before passing to proxy - #4 by k4ml
but I was not able to understand these to blocks:
rewrite {
if {path} is /
to /proxy/{uri}
}
rewrite {
to {path} /proxy/{uri}
}