docs: Update route example's uri directive syntax

This commit is contained in:
Francis Lavoie 2020-05-13 00:19:50 -04:00 committed by GitHub
parent a5dee98892
commit 430602e063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }
``` ```