ReverseProxy and Subdirectories

To prepend to the path, use rewrite instead:

rewrite * /some/path/on/upstream{uri}

@Northrop I wrote a very comprehensive wiki article about composing routes in the Caddyfile – it will answer your question! (As will the docs page for the route directive.)

1 Like