mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 03:37:13 -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
|
@ -249,16 +249,16 @@ Configure some transport options:
|
|||
reverse_proxy https://example.com {
|
||||
transport http {
|
||||
dial_timeout 2s
|
||||
tls_timeout 2s
|
||||
tls_timeout 2s
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
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