diff --git a/patches/nginx-1.13.6-always_enable_cc_feature_tests.patch b/patches/nginx-1.13.6-always_enable_cc_feature_tests.patch new file mode 100644 index 0000000..fa637c5 --- /dev/null +++ b/patches/nginx-1.13.6-always_enable_cc_feature_tests.patch @@ -0,0 +1,11 @@ +--- nginx-1.13.6/auto/cc/conf 2015-10-30 22:47:50.000000000 +0800 ++++ nginx-1.13.6-patched/auto/cc/conf 2015-11-02 12:23:05.385156987 +0800 +@@ -136,7 +136,7 @@ fi + CFLAGS="$CFLAGS $NGX_CC_OPT" + NGX_TEST_LD_OPT="$NGX_LD_OPT" + +-if [ "$NGX_PLATFORM" != win32 ]; then ++if [ 1 ]; then + + if test -n "$NGX_LD_OPT"; then + ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\" diff --git a/patches/nginx-1.13.6-balancer_status_code.patch b/patches/nginx-1.13.6-balancer_status_code.patch new file mode 100644 index 0000000..ea40525 --- /dev/null +++ b/patches/nginx-1.13.6-balancer_status_code.patch @@ -0,0 +1,27 @@ +diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c +index 0f6b3ae..56d44fc 100644 +--- a/src/http/ngx_http_upstream.c ++++ b/src/http/ngx_http_upstream.c +@@ -1368,6 +1368,11 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u) + return; + } + ++ if (rc >= NGX_HTTP_SPECIAL_RESPONSE) { ++ ngx_http_upstream_finalize_request(r, u, rc); ++ return; ++ } ++ + u->state->peer = u->peer.name; + + if (rc == NGX_BUSY) { +diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h +index b288f28..9b60e12 100644 +--- a/src/http/ngx_http_upstream.h ++++ b/src/http/ngx_http_upstream.h +@@ -418,5 +418,6 @@ extern ngx_module_t ngx_http_upstream_module; + extern ngx_conf_bitmask_t ngx_http_upstream_cache_method_mask[]; + extern ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks[]; + ++#define HAVE_BALANCER_STATUS_CODE_PATCH + + #endif /* _NGX_HTTP_UPSTREAM_H_INCLUDED_ */ diff --git a/patches/nginx-1.13.6-builtin_error_page_footer.patch b/patches/nginx-1.13.6-builtin_error_page_footer.patch new file mode 100644 index 0000000..2212ab4 --- /dev/null +++ b/patches/nginx-1.13.6-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[] = +-"