mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 21:16:15 -04:00
Update forward_auth.md example (#428)
request_header doesn't seem to accept multiple headers at a time.
This commit is contained in:
parent
59a848c26d
commit
e9db589e6b
1 changed files with 3 additions and 5 deletions
|
@ -94,11 +94,9 @@ reverse_proxy <upstreams...> {
|
|||
# On a successful response, copy response headers
|
||||
@good status 2xx
|
||||
handle_response @good {
|
||||
request_header {
|
||||
# for example, for each copy_headers field...
|
||||
Remote-User {rp.header.Remote-User}
|
||||
Remote-Email {rp.header.Remote-Email}
|
||||
}
|
||||
# for example, for each copy_headers field...
|
||||
request_header Remote-User {rp.header.Remote-User}
|
||||
request_header Remote-Email {rp.header.Remote-Email}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue