From eb9632f7c6ae675bdee4c82eb0d298ba7f37fc52 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 12 Sep 2012 08:43:15 +0200 Subject: [PATCH 10/10] MEDIUM: http: add "redirect scheme" to ease HTTP to HTTPS redirection For instance : redirect scheme https if !{ is_ssl } Backport-suggested-by: Russell Geldmacher (cherry picked from commit 2e1dca8f5238155cbc52d37316fe858c4f61cf34) --- doc/configuration.txt | 35 ++++++++++++++++++------- include/types/proto_http.h | 1 + src/cfgparse.c | 14 +++++++++- src/proto_http.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 11 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 56438dd..f2043a1 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -4039,8 +4039,9 @@ rate-limit sessions See also : the "backlog" keyword and the "fe_sess_rate" ACL criterion. -redirect location [code ]