mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Update route example's uri directive syntax
This commit is contained in:
parent
a5dee98892
commit
430602e063
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ And now `file_server` will be chained in before `redir` because the order is tak
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Strip `api/` prefix from request path just before proxying all API requests to a backend:
|
Strip `/api` prefix from request path just before proxying all API requests to a backend:
|
||||||
|
|
||||||
```
|
```
|
||||||
route /api/* {
|
route /api/* {
|
||||||
uri strip_prefix api/
|
uri strip_prefix /api
|
||||||
reverse_proxy localhost:9000
|
reverse_proxy localhost:9000
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue