Apply suggestions from code review

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
Francis Lavoie 2020-12-02 13:37:49 -05:00 committed by GitHub
parent d406814cfb
commit 43c6d77a56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,11 +254,11 @@ reverse_proxy https://example.com {
}
```
Strip a path prefix then proxy with a new path:
Replace a path prefix before proxying:
```caddy-d
handle_path /prefix/* {
rewrite * /foo{path}
handle_path /old-prefix/* {
rewrite * /new-prefix{path}
reverse_proxy localhost:9000
}
```