mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 21:46:16 -04:00
docs: Update remote_ip matcher
This commit is contained in:
parent
bc7f8553c3
commit
e63739891c
1 changed files with 2 additions and 2 deletions
|
@ -455,10 +455,10 @@ query sort=asc
|
|||
### remote_ip
|
||||
|
||||
```caddy-d
|
||||
remote_ip <ranges...>
|
||||
remote_ip [forwarded] <ranges...>
|
||||
```
|
||||
|
||||
By remote (client) IP address. If `X-Forwarded-For` is passed in request headers, this will be used for remote IP address. Accepts exact IPs or CIDR ranges.
|
||||
By remote (client) IP address. Accepts exact IPs or CIDR ranges. If the first argument is `forwarded`, then the first IP in the `X-Forwarded-For` request header, if present, will be preferred as the reference IP, rather than the immediate peer's IP, which is the default.
|
||||
|
||||
Multiple `remote_ip` matchers will be OR'ed together.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue