mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 11:47:12 -04:00
Apply suggestions from code review
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
parent
d406814cfb
commit
43c6d77a56
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue