reverse_proxy: document how to strip a path prefix (#203)

This commit is contained in:
Simon Legner 2022-01-08 18:43:39 +01:00 committed by GitHub
parent f15d9b8530
commit a9a2bd3ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,6 +375,15 @@ reverse_proxy https://example.com {
``` ```
Strip a path prefix before proxying:
```caddy-d
handle_path /prefix/* {
reverse_proxy localhost:9000
}
```
Replace a path prefix before proxying: Replace a path prefix before proxying:
```caddy-d ```caddy-d