mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 22:16:15 -04:00
Update site for 2.0; add v2 landing page with asciinema video; docs
This commit is contained in:
parent
144a639efc
commit
e52e32ba7d
14 changed files with 3775 additions and 10 deletions
|
@ -185,7 +185,7 @@ Set the upstream Host header to the address of the upstream (by default, it will
|
|||
|
||||
```
|
||||
reverse_proxy localhost:9000 {
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -195,3 +195,11 @@ Reverse proxy to an HTTPS endpoint:
|
|||
reverse_proxy https://example.com
|
||||
```
|
||||
|
||||
Strip a path prefix then proxy:
|
||||
|
||||
```
|
||||
route /prefix/* {
|
||||
uri strip_prefix /prefix
|
||||
reverse_proxy localhost:9000
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue