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
|
@ -249,16 +249,16 @@ Configure some transport options:
|
||||||
reverse_proxy https://example.com {
|
reverse_proxy https://example.com {
|
||||||
transport http {
|
transport http {
|
||||||
dial_timeout 2s
|
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
|
```caddy-d
|
||||||
handle_path /prefix/* {
|
handle_path /old-prefix/* {
|
||||||
rewrite * /foo{path}
|
rewrite * /new-prefix{path}
|
||||||
reverse_proxy localhost:9000
|
reverse_proxy localhost:9000
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue