diff --git a/CVE-2019-20372.patch b/CVE-2019-20372.patch deleted file mode 100644 index ae85e3e33fe4d2c806f8838c5e45b7c8249d0e21..0000000000000000000000000000000000000000 --- a/CVE-2019-20372.patch +++ /dev/null @@ -1,28 +0,0 @@ -From c1be55f97211d38b69ac0c2027e6812ab8b1b94e Mon Sep 17 00:00:00 2001 -From: Ruslan Ermilov -Date: Mon, 23 Dec 2019 15:45:46 +0300 -Subject: [PATCH] Discard request body when redirecting to a URL via - error_page. - -Reported by Bert JW Regeer and Francisco Oca Gonzalez. ---- - src/http/ngx_http_special_response.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c -index 4ffb2cc8ad..76e6705889 100644 ---- a/src/http/ngx_http_special_response.c -+++ b/src/http/ngx_http_special_response.c -@@ -606,6 +606,12 @@ ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page) - return ngx_http_named_location(r, &uri); - } - -+ r->expect_tested = 1; -+ -+ if (ngx_http_discard_request_body(r) != NGX_OK) { -+ r->keepalive = 0; -+ } -+ - location = ngx_list_push(&r->headers_out.headers); - - if (location == NULL) { diff --git a/nginx-1.16.1.tar.gz b/nginx-1.16.1.tar.gz deleted file mode 100644 index d172fc5bfac01c198d0ce22e877f25234f8b63ea..0000000000000000000000000000000000000000 Binary files a/nginx-1.16.1.tar.gz and /dev/null differ diff --git a/nginx-1.18.0.tar.gz b/nginx-1.18.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cd4b34fd9dd10b711ac676e7084c93dab3469420 Binary files /dev/null and b/nginx-1.18.0.tar.gz differ diff --git a/nginx.conf b/nginx.conf index 3c5c787a780d4f3a6aca7058e6c057b6105369d4..f85920a863387006605204bf4676c32a7a1464ec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -25,7 +25,7 @@ http { tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; - types_hash_max_size 2048; + types_hash_max_size 4096; include /etc/nginx/mime.types; default_type application/octet-stream; @@ -36,17 +36,14 @@ http { include /etc/nginx/conf.d/*.conf; server { - listen 80 default_server; - listen [::]:80 default_server; + listen 80; + listen [::]:80; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; - location / { - } - error_page 404 /404.html; location = /40x.html { } @@ -59,8 +56,8 @@ http { # Settings for a TLS enabled server. # # server { -# listen 443 ssl http2 default_server; -# listen [::]:443 ssl http2 default_server; +# listen 443 ssl http2; +# listen [::]:443 ssl http2; # server_name _; # root /usr/share/nginx/html; # @@ -74,9 +71,6 @@ http { # # Load configuration files for the default server block. # include /etc/nginx/default.d/*.conf; # -# location / { -# } -# # error_page 404 /404.html; # location = /40x.html { # } diff --git a/nginx.spec b/nginx.spec index 150c42bff2ebfa5989a8f23976ca561508a5d4f3..f16938609dd47d407444d73761c43289646a5763 100644 --- a/nginx.spec +++ b/nginx.spec @@ -13,8 +13,8 @@ Name: nginx Epoch: 1 -Version: 1.16.1 -Release: 4 +Version: 1.18.0 +Release: 1 Summary: A HTTP server, reverse proxy and mail proxy server License: BSD URL: http://nginx.org/ @@ -33,7 +33,6 @@ Source210: UPGRADE-NOTES-1.6-to-1.10 Patch0: nginx-auto-cc-gcc.patch Patch2: nginx-1.12.1-logs-perm.patch -Patch3: CVE-2019-20372.patch BuildRequires: gcc openssl-devel pcre-devel zlib-devel systemd gperftools-devel Requires: nginx-filesystem = %{epoch}:%{version}-%{release} openssl pcre Requires: nginx-all-modules = %{epoch}:%{version}-%{release} @@ -45,6 +44,7 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Provides: webserver +Recommends: logrotate %description NGINX is a free, open-source, high-performance HTTP server and reverse proxy, @@ -344,6 +344,9 @@ fi %{_mandir}/man8/nginx.8* %changelog +* Thu Jun 4 2020 huanghaitao - 1:1.18.0-1 +- Change source to latest update + * Fri May 22 2020 wutao - 1:1.16.1-4 - change and delete html