From 0140f2553cc92ffc93d2045618ee48afd0a5cf0d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 19 Nov 2008 21:07:09 +0100 Subject: [PATCH] [MINOR] redirect: add support for "set-cookie" and "clear-cookie" It is now possible to set or clear a cookie during a redirection. This is useful for logout pages, or for protecting against some DoSes. Check the documentation for the options supported by the "redirect" keyword. (cherry-picked from commit 4af993822e880d8c932f4ad6920db4c9242b0981) --- doc/configuration.txt | 62 +++++++++++++++++++++++++++++++---------- include/types/proxy.h | 2 ++ src/cfgparse.c | 38 +++++++++++++++++++++++++ src/proto_http.c | 9 ++++++ tests/test-redirect.cfg | 7 +++++ 5 files changed, 104 insertions(+), 14 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 2467007f99..ca6f293ef0 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -2336,34 +2336,68 @@ no option transparent "transparent" option of the "bind" keyword. -redirect location [code ] {if | unless} -redirect prefix [drop-query] [code ] {if | unless} +redirect location [code ]