Normalize the X-Forwarded-For header
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
0a7e1e0c03
commit
3c12da859e
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ backend localapache {
|
|||
}
|
||||
|
||||
sub vcl_recv {
|
||||
# This gets arround the silly, ::1 that Apache adds on the proxies (still need to look at that)
|
||||
set req.http.X-Forwarded-For = regsub(req.http.X-Forwarded-For, "^([a-f0-9:.]+), .+$", "\1");
|
||||
|
||||
set req.backend_hint = localapache;
|
||||
unset req.http.cookie;
|
||||
set req.http.clear-cookies = "yes";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue