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.
This commit is contained in:
Yichun Zhang (agentzh) 2017-06-23 14:30:21 -07:00
parent ce30f58339
commit add30287e1
2 changed files with 20 additions and 0 deletions

View File

@ -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[] =
-"<hr><center>nginx</center>" CRLF
+"<hr><center>openresty</center>" CRLF
"</body>" CRLF
"</html>" CRLF
;

View File

@ -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"