From add30287e13b225b6a619bee5f7c321bc97bd746 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Fri, 23 Jun 2017 14:30:21 -0700 Subject: [PATCH] change: applied a patch to the nginx core to turn nginx to openresty in the builtin special response pages' footer. Thanks Datong Sun for the patch. --- .../nginx-1.11.2-builtin_error_page_footer.patch | 13 +++++++++++++ util/mirror-tarballs | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 patches/nginx-1.11.2-builtin_error_page_footer.patch diff --git a/patches/nginx-1.11.2-builtin_error_page_footer.patch b/patches/nginx-1.11.2-builtin_error_page_footer.patch new file mode 100644 index 0000000..2212ab4 --- /dev/null +++ b/patches/nginx-1.11.2-builtin_error_page_footer.patch @@ -0,0 +1,13 @@ +diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c +index 64e5acd..f5374f6 100644 +--- a/src/http/ngx_http_special_response.c ++++ b/src/http/ngx_http_special_response.c +@@ -26,7 +26,7 @@ static u_char ngx_http_error_full_tail[] = + + + static u_char ngx_http_error_tail[] = +-"
nginx
" CRLF ++"
openresty
" CRLF + "" CRLF + "" CRLF + ; diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 1c7ce27..2f00c27 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -55,6 +55,13 @@ else fi fi +answer=`$root/util/ver-ge "$main_ver" 1.11.2` +if [ "$answer" = "Y" ]; then + echo "$info_txt applying the builtin_error_page_footer patch" + patch -p1 < $root/patches/nginx-$main_ver-builtin_error_page_footer.patch || exit 1 + echo +fi + answer=`$root/util/ver-ge "$main_ver" 1.11.2` if [ "$answer" = "Y" ]; then echo "$info_txt applying the delayed-posted-events patch"