mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 21:46:16 -04:00
Initial commit
This commit is contained in:
commit
03b6fddeb0
77 changed files with 7599 additions and 0 deletions
27
src/docs/markdown/caddyfile/directives/uri_replace.md
Normal file
27
src/docs/markdown/caddyfile/directives/uri_replace.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: uri_replace (Caddyfile directive)
|
||||
---
|
||||
|
||||
# uri_replace
|
||||
|
||||
Performs a substring or regular expression replacement in the request URI.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
uri_replace [<matcher>] <find> <replace> [<limit>]
|
||||
```
|
||||
|
||||
- **<find>** is the substring or regular expression to search for.
|
||||
- **<replace>** is the replacement value.
|
||||
- **<limit>** is an optional limit to the number of replacements.
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
Replace "/docs/" with "/v1/docs/" in any request URI:
|
||||
|
||||
```
|
||||
uri_replace * /docs/ /v1/docs/
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue