mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
reverse_proxy: document how to strip a path prefix (#203)
This commit is contained in:
parent
f15d9b8530
commit
a9a2bd3ae4
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue