From 722ee7bfa2a02156d37fc91613bdc215927bc16a Mon Sep 17 00:00:00 2001 From: heil Date: Fri, 29 Nov 2013 15:28:24 +0000 Subject: [PATCH] package: haproxy - [PATCH 10/10] MEDIUM: http: add "redirect scheme" to ease HTTP to HTTPS redirection git-svn-id: svn://svn.openwrt.org/openwrt/packages@38945 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/haproxy/Makefile | 2 +- ...redirect-scheme-to-ease-HTTP-to-HTTP.patch | 202 ++++++++++++++++++ 2 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 net/haproxy/patches/0010-MEDIUM-http-add-redirect-scheme-to-ease-HTTP-to-HTTP.patch diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 3fea8b4f8..e7a1d8701 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haproxy PKG_VERSION:=1.4.24 -PKG_RELEASE:=09 +PKG_RELEASE:=10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src diff --git a/net/haproxy/patches/0010-MEDIUM-http-add-redirect-scheme-to-ease-HTTP-to-HTTP.patch b/net/haproxy/patches/0010-MEDIUM-http-add-redirect-scheme-to-ease-HTTP-to-HTTP.patch new file mode 100644 index 000000000..53863c53d --- /dev/null +++ b/net/haproxy/patches/0010-MEDIUM-http-add-redirect-scheme-to-ease-HTTP-to-HTTP.patch @@ -0,0 +1,202 @@ +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 ]