Compare commits

...

60 Commits

Author SHA1 Message Date
Felix Kaechele 0d69dc951a fix 404.html location and indenting (rhbz#1409685)
include patch for CVE-2019-20372 (rhbz#1790280)
rework patches to work with %%autosetup
2020-06-07 12:20:31 -04:00
Warren Togami bd6f020456 Merge remote-tracking branch 'origin/master' into epel7 2019-10-02 22:09:56 -07:00
Warren Togami 793b7e1d28 EPEL committee decision to maintain EPEL7 nginx with Fedora, first step is to replace with master branch files. 2019-10-02 22:04:44 -07:00
Jamie Nguyen c18be768fe Add missing directory for vim plugin 2019-05-07 06:50:29 +01:00
Tadej Janež 023a09b06a
Enable building the ngx_http_auth_request_module module (RHBZ #1471107) 2018-03-06 10:17:29 +01:00
Luboš Uhliarik 7c6355f049 update to upstream release 1.12.2
Resolves: #1468584 - (CVE-2017-7529) CVE-2017-7529 nginx: Integer
  overflow in nginx range filter module leading to memory disclosure
2017-10-18 09:41:50 +02:00
Luboš Uhliarik f959394896 Resolves: #1478662 - rebuild for ALPN support 2017-09-18 11:15:08 +02:00
Jamie Nguyen 0ad69b3018 Merge branch 'master' into epel7 2016-10-31 12:35:17 +00:00
Jamie Nguyen 1f569e93dc Merge branch 'master' into epel7 2016-07-04 14:10:49 +01:00
Jamie Nguyen 4859abf2bd Merge branch 'master' into epel7 2016-07-02 19:52:06 +01:00
Jamie Nguyen 950c07b784 Merge branch 'master' into epel7 2016-07-02 19:49:52 +01:00
Jamie Nguyen a9d27fe9fb Merge branch 'master' into epel7 2016-07-02 19:35:51 +01:00
Jamie Nguyen d8a9dd4d5a Merge branch 'master' into epel7 2016-07-02 19:31:25 +01:00
Jamie Nguyen 7be939a1eb Merge branch 'master' into epel7 2016-07-02 19:24:50 +01:00
Jamie Nguyen 02037aa84e Merge branch 'master' into epel7 2016-07-02 19:13:46 +01:00
Jamie Nguyen fc810867b3 Bump release 2016-05-31 18:55:26 +01:00
Jamie Nguyen 193efa4e1d Fix CVE-2016-4450 2016-05-31 18:40:37 +01:00
Jamie Nguyen 2f9b55b87b Fix various CVEs from 1.8.1 2016-01-26 18:12:02 +00:00
Jamie Nguyen 310718c028 Improve gitignore 2016-01-26 17:33:32 +00:00
Jamie Nguyen bfa5831962 Remove tar 2016-01-26 17:32:58 +00:00
Jamie Nguyen 6e067ad07d Bump release and changelog 2015-10-04 08:52:20 +01:00
Jamie Nguyen 89a360a565 Remove PID file before starting nginx (#1268621)
`nginx -t` creates the file /run/nginx.pid if it doesn't exist. `nginx -t` is
executed by ExecStartPre (in nginx.service) and creates /run/nginx.pid with the
correct SELinux context. However, when manually running `nginx -t` from the
cmdline, the SELinux transition for systemd services doesn't occur and
/run/nginx.pid is created with the wrong SELinux context. A workaround is to
make sure that the PID file is removed before starting nginx.
2015-10-04 08:51:42 +01:00
Jamie Nguyen b73f5f3ef9 Bump release and changelog 2015-07-03 13:40:44 +01:00
Jamie Nguyen d6fe3140ac Switch back to /bin/kill due to SELinux denials 2015-07-03 13:40:32 +01:00
Jamie Nguyen 41a69e61a1 Bump release and changelog 2015-06-16 22:27:51 +01:00
Jamie Nguyen 14760f87c2 Set KillMode=process (#1231543) 2015-06-16 22:27:02 +01:00
Jamie Nguyen 8895b33172 Bump release and changelog 2015-06-16 22:26:26 +01:00
Jamie Nguyen 2711a74d48 Optimize png images with optipng 2015-06-16 22:25:58 +01:00
Ville Skyttä b1999fb929 Use absolute paths to images in error pages 2015-06-16 22:25:52 +01:00
Jamie Nguyen 3b023b1fa5 Bump release and changelog 2015-06-14 18:14:35 +01:00
Jamie Nguyen 66c81d4eac KillMode=mixed is not supported on systemd v208 2015-06-14 18:13:05 +01:00
Jamie Nguyen 1f6028c976 Minor improvements to nginx.service and logrotate 2015-06-14 18:12:52 +01:00
Jamie Nguyen 19236f4025 Bump release and changelog 2015-05-10 10:09:33 +01:00
Jamie Nguyen fc84ebd99d Remove redundant commands from %post 2015-05-10 10:04:05 +01:00
Jamie Nguyen 8b3545a6ae Remove redundant files 2015-05-10 10:02:04 +01:00
Jamie Nguyen a05b40aebb Extend sleep times and add additional check 2015-05-10 10:00:53 +01:00
Jamie Nguyen 822ac7d7f4 Add --with-pcre-jit 2015-05-10 10:00:36 +01:00
Jamie Nguyen 8960fe5b7c Run nginx-upgrade on package update 2015-05-10 09:59:45 +01:00
Jamie Nguyen abfbfbdfeb Remove systemd conditionals 2015-05-10 09:59:31 +01:00
Jamie Nguyen fc7b5b3b29 Add TimeoutStopSec=5 and KillMode=mixed 2015-05-10 09:56:51 +01:00
Jamie Nguyen c7df15134f Improve nginx.conf 2015-05-10 09:56:23 +01:00
Jamie Nguyen 675148b262 Update to upstream release 1.6.3 2015-04-09 19:57:31 +01:00
Jamie Nguyen 56a5c49435 Merge branch 'master' into epel7 2014-10-22 20:48:10 +01:00
Jamie Nguyen bb4239efa0 Merge branch 'master' into epel7 2014-10-22 20:14:38 +01:00
Jamie Nguyen 09d71762bc Revert "Create nginx-filesystem subpackage (patch from Remi Collet)"
This reverts commit aa7abdd0d6.
2014-10-22 20:14:35 +01:00
Jamie Nguyen aa7abdd0d6 Create nginx-filesystem subpackage (patch from Remi Collet) 2014-09-22 17:58:51 +01:00
Jamie Nguyen 618531bf75 Merge branch 'master' into epel7 2014-09-17 07:38:00 +01:00
Jamie Nguyen c6a4d3a834 Merge branch 'master' into epel7 2014-08-05 16:43:47 +01:00
Jamie Nguyen ce560d3c4b Merge branch 'master' into epel7 2014-08-05 15:57:02 +01:00
Jamie Nguyen b074711b52 Revert "systemd is fedora 16+ or EL7"
This reverts commit 23f650d0c7.
2014-08-05 15:56:54 +01:00
Warren Togami e754ce11f2 Merge remote-tracking branch 'origin/f21' into epel7 2014-07-30 13:05:55 -10:00
Warren Togami 23f650d0c7 systemd is fedora 16+ or EL7 2014-07-29 17:59:01 -10:00
Jamie Nguyen 95d07b04c4 Merge branch 'master' into f19 2014-03-18 21:15:38 +00:00
Jamie Nguyen 2ef2d094a7 Merge branch 'master' into f19 2014-03-05 18:46:21 +00:00
Jamie Nguyen 5b0b18bc81 Merge branch 'master' into f19 2014-02-16 18:14:58 +00:00
Jamie Nguyen 3335a2cdf2 Merge branch 'master' into f19 2014-02-16 18:13:15 +00:00
Jamie Nguyen 1f05349f9e Merge branch 'master' into f19 2014-02-16 18:02:14 +00:00
Peter Borsa fd256c6cd1 Merge branch 'master' into f19 2013-11-20 10:53:00 +01:00
Jamie Nguyen d5faf95acf Merge branch 'master' into f19
Conflicts:
	nginx.spec
	sources
2013-11-03 09:30:36 +00:00
Jonathan Steffan e09136d836 Add conditionals to assist in backporting nginx to non-systemd distros. 2013-08-09 11:30:28 -06:00
6 changed files with 95 additions and 25 deletions

View File

@ -0,0 +1,31 @@
From dc82bbc50774a2a51427a33a84ac928b3f706a6f Mon Sep 17 00:00:00 2001
From: Felix Kaechele <felix@kaechele.ca>
Date: Sun, 7 Jun 2020 12:14:02 -0400
Subject: [PATCH 1/3] remove Werror in upstream build scripts
removes -Werror in upstream build scripts. -Werror conflicts with
-D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
---
auto/cc/gcc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/auto/cc/gcc b/auto/cc/gcc
index a5c5c18..cdbbadb 100644
--- a/auto/cc/gcc
+++ b/auto/cc/gcc
@@ -166,7 +166,9 @@ esac
# stop on warning
-CFLAGS="$CFLAGS -Werror"
+# This combined with Fedora's FORTIFY_SOURCE=2 option causes it nginx
+# to not compile.
+#CFLAGS="$CFLAGS -Werror"
# debug
CFLAGS="$CFLAGS -g"
--
2.26.2

View File

@ -1,8 +1,20 @@
From c770a31fbfcc1e69ac666f52676e709a65c9ef72 Mon Sep 17 00:00:00 2001
From: Felix Kaechele <felix@kaechele.ca>
Date: Sun, 7 Jun 2020 12:14:54 -0400
Subject: [PATCH 2/3] change logs permissions to 664
This patch is carried downstream only.
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
---
src/core/ngx_cycle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index aee7a58..bcceecb 100644
index 95f4bdf..a0dcca6 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -1108,7 +1108,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
@@ -1182,7 +1182,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
}
fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND,
@ -11,3 +23,6 @@ index aee7a58..bcceecb 100644
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
"reopen file \"%s\", old:%d new:%d",
--
2.26.2

View File

@ -0,0 +1,31 @@
From b0e0114ed7d127e38b50fd1c2827eb959bd9a18f Mon Sep 17 00:00:00 2001
From: Ruslan Ermilov <ru@nginx.com>
Date: Mon, 23 Dec 2019 15:45:46 +0300
Subject: [PATCH 3/3] 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 4ffb2cc..76e6705 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -623,6 +623,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) {
--
2.26.2

View File

@ -1,13 +0,0 @@
--- auto/cc/gcc.orig 2007-03-22 08:34:53.000000000 -0600
+++ auto/cc/gcc 2007-03-22 08:58:47.000000000 -0600
@@ -172,7 +172,9 @@
# stop on warning
-CFLAGS="$CFLAGS -Werror"
+# This combined with Fedora's FORTIFY_SOURCE=2 option causes it nginx
+# to not compile.
+#CFLAGS="$CFLAGS -Werror"
# debug
CFLAGS="$CFLAGS -g"

View File

@ -48,11 +48,11 @@ http {
}
error_page 404 /404.html;
location = /40x.html {
location = /404.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
location = /50x.html {
}
}
@ -78,11 +78,11 @@ http {
# }
#
# error_page 404 /404.html;
# location = /40x.html {
# location = /404.html {
# }
#
# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# location = /50x.html {
# }
# }

View File

@ -23,7 +23,7 @@
Name: nginx
Epoch: 1
Version: 1.16.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A high performance web server and reverse proxy server
# BSD License (two clause)
@ -45,11 +45,14 @@ Source210: UPGRADE-NOTES-1.6-to-1.10
# removes -Werror in upstream build scripts. -Werror conflicts with
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
Patch0: nginx-auto-cc-gcc.patch
Patch0: 0001-remove-Werror-in-upstream-build-scripts.patch
# downstream patch - changing logs permissions to 664 instead
# previous 644
Patch2: nginx-1.12.1-logs-perm.patch
Patch1: 0002-change-logs-permissions-to-664.patch
# CVE-2019-20372
Patch2: 0003-Discard-request-body-when-redirecting-to-a-URL-via-e.patch
BuildRequires: gcc
%if 0%{?with_gperftools}
@ -178,9 +181,7 @@ Requires: nginx
%prep
%setup -q
%patch0 -p0
%patch2 -p1
%autosetup -p1
cp %{SOURCE200} %{SOURCE210} %{SOURCE10} %{SOURCE12} .
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
@ -477,6 +478,11 @@ fi
%changelog
* Sun Jun 07 2020 Felix Kaechele <heffer@fedoraproject.org> - 1:1.16.1-2
- fix 404.html location and indenting (rhbz#1409685)
- include patch for CVE-2019-20372 (rhbz#1790280)
- rework patches to work with %%autosetup
* Sun Sep 15 2019 Warren Togami <warren@blockstream.com>
- add conditionals for EPEL7, see rhbz#1750857