Initial commit

This commit is contained in:
Matthew Holt 2020-01-24 12:47:52 -07:00
commit 03b6fddeb0
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
77 changed files with 7599 additions and 0 deletions

View 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>]
```
- **&lt;find&gt;** is the substring or regular expression to search for.
- **&lt;replace&gt;** is the replacement value.
- **&lt;limit&gt;** is an optional limit to the number of replacements.
## Examples
Replace "/docs/" with "/v1/docs/" in any request URI:
```
uri_replace * /docs/ /v1/docs/
```