Compare commits

..

No commits in common. 'i9' and 'c9' have entirely different histories.
i9 ... c9

@ -1,25 +0,0 @@
From 6a08ad4a381f8c2e6fcf1299fd19f6482a55d922 Mon Sep 17 00:00:00 2001
From: Dmitry Samoylik <Dmitriy.Samoylik@softline.com>
Date: Tue, 13 Aug 2024 14:13:16 +0300
Subject: [PATCH] change NGX_HTTP_AUTOINDEX_NAME_LEN
---
src/http/modules/ngx_http_autoindex_module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
index 082bcb5..097a765 100644
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -52,7 +52,7 @@ typedef struct {
#define NGX_HTTP_AUTOINDEX_PREALLOCATE 50
-#define NGX_HTTP_AUTOINDEX_NAME_LEN 50
+#define NGX_HTTP_AUTOINDEX_NAME_LEN 120
static ngx_buf_t *ngx_http_autoindex_html(ngx_http_request_t *r,
--
2.43.5

@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head> <head>
<title>Страница не найдена</title> <title>The page is not found</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css"> <style type="text/css">
/*<![CDATA[*/ /*<![CDATA[*/
body { body {
background-color: #8ec07c; background-color: #fff;
color: #000; color: #000;
font-size: 0.9em; font-size: 0.9em;
font-family: sans-serif,helvetica; font-family: sans-serif,helvetica;
@ -15,19 +15,19 @@
padding: 0; padding: 0;
} }
:link { :link {
color: #0B2335; color: #c00;
} }
:visited { :visited {
color: #0B2335; color: #c00;
} }
a:hover { a:hover {
color: #0069DA; color: #f50;
} }
h1 { h1 {
text-align: center; text-align: center;
margin: 0; margin: 0;
padding: 0.6em 2em 0.4em; padding: 0.6em 2em 0.4em;
background-color: #1F3D48; background-color: #900;
color: #fff; color: #fff;
font-weight: normal; font-weight: normal;
font-size: 1.75em; font-size: 1.75em;
@ -39,7 +39,7 @@
} }
h2 { h2 {
text-align: center; text-align: center;
background-color: #1F3D48; background-color: #900;
font-size: 1.1em; font-size: 1.1em;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
@ -64,7 +64,7 @@
} }
img { img {
border: 2px solid #FAF5F5; border: 2px solid #fff;
padding: 2px; padding: 2px;
margin: 2px; margin: 2px;
} }
@ -80,27 +80,27 @@
</head> </head>
<body> <body>
<h1><strong>nginx, ошибка!</strong></h1> <h1><strong>nginx error!</strong></h1>
<div class="content"> <div class="content">
<h3>Страница, которую вы ищете, не найдена.</h3> <h3>The page you are looking for is not found.</h3>
<div class="alert"> <div class="alert">
<h2>Администратор Web-сайта</h2> <h2>Website Administrator</h2>
<div class="content"> <div class="content">
<p>Что-то привело к отсутствию веб-страницы на вашем <p>Something has triggered missing webpage on your
сайте. Это страница ошибки 404 по умолчанию для website. This is the default 404 error page for
<strong>nginx</strong> которая распространяется с <strong>nginx</strong> that is distributed with
МСВСфера. Она находится Red Hat Enterprise Linux. It is located
<tt>/usr/share/nginx/html/404.html</tt></p> <tt>/usr/share/nginx/html/404.html</tt></p>
<p>Вы должны настроить эту страницу ошибки для своего <p>You should customize this error page for your own
сайта или отредактировать директиву <tt>error_page</tt> в site or edit the <tt>error_page</tt> directive in
файле конфигурации <strong>nginx</strong> the <strong>nginx</strong> configuration file
<tt>/etc/nginx/nginx.conf</tt>.</p> <tt>/etc/nginx/nginx.conf</tt>.</p>
<p>Для получения информации о МСВСфера, пожалуйста посетите <a href="https://www.msvsphere-os.ru/">веб-сайт Инферит МСВСфера"</a>. Документация по МСВСфера <a href="https://docs.msvsphere-os.ru/">доступна на веб-сайте дистрибутива МСВСфера</a>.</p> <p>For information on Red Hat Enterprise Linux, please visit the <a href="http://www.redhat.com/">Red Hat, Inc. website</a>. The documentation for Red Hat Enterprise Linux is <a href="http://www.redhat.com/docs/manuals/enterprise/">available on the Red Hat, Inc. website</a>.</p>
</div> </div>
</div> </div>
@ -110,10 +110,10 @@
src="nginx-logo.png" src="nginx-logo.png"
alt="[ Powered by nginx ]" alt="[ Powered by nginx ]"
width="121" height="32" /></a> width="121" height="32" /></a>
<a href="https://www.msvsphere-os.ru/"><img <a href="http://www.redhat.com/"><img
src="icons/poweredby.png" src="poweredby.png"
alt="[ Powered by MSVSphere ]" alt="[ Powered by Red Hat Enterprise Linux ]"
width="294" height="31" /></a> width="88" height="31" /></a>
</div> </div>
</div> </div>
</body> </body>

@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head> <head>
<title>Страница временно недоступна</title> <title>The page is temporarily unavailable</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css"> <style type="text/css">
/*<![CDATA[*/ /*<![CDATA[*/
body { body {
background-color: #8ec07c; background-color: #fff;
color: #000; color: #000;
font-size: 0.9em; font-size: 0.9em;
font-family: sans-serif,helvetica; font-family: sans-serif,helvetica;
@ -15,19 +15,19 @@
padding: 0; padding: 0;
} }
:link { :link {
color: #0B2335; color: #c00;
} }
:visited { :visited {
color: #0B2335; color: #c00;
} }
a:hover { a:hover {
color: #0069DA; color: #f50;
} }
h1 { h1 {
text-align: center; text-align: center;
margin: 0; margin: 0;
padding: 0.6em 2em 0.4em; padding: 0.6em 2em 0.4em;
background-color: #1F3D48; background-color: #900;
color: #fff; color: #fff;
font-weight: normal; font-weight: normal;
font-size: 1.75em; font-size: 1.75em;
@ -39,7 +39,7 @@
} }
h2 { h2 {
text-align: center; text-align: center;
background-color: #1F3D48; background-color: #900;
font-size: 1.1em; font-size: 1.1em;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
@ -80,27 +80,27 @@
</head> </head>
<body> <body>
<h1><strong>nginx ошибка!</strong></h1> <h1><strong>nginx error!</strong></h1>
<div class="content"> <div class="content">
<h3>Страница, которую вы ищете, временно недоступна. Пожалуйста, повторите попытку позже.</h3> <h3>The page you are looking for is temporarily unavailable. Please try again later.</h3>
<div class="alert"> <div class="alert">
<h2>Администратор Web-сайта</h2> <h2>Website Administrator</h2>
<div class="content"> <div class="content">
<p>Что-то привело к отсутствию веб-страницы на вашем <p>Something has triggered missing webpage on your
сайте. Это страница ошибок по умолчанию для website. This is the default error page for
<strong>nginx</strong>, которая распространяется с <strong>nginx</strong> that is distributed with
МСВСфера. Она находится Red Hat Enterprise Linux. It is located
<tt>/usr/share/nginx/html/50x.html</tt></p> <tt>/usr/share/nginx/html/50x.html</tt></p>
<p>Вы должны настроить эту страницу ошибки для своего <p>You should customize this error page for your own
сайта или отредактировать директиву <tt>error_page</tt> в site or edit the <tt>error_page</tt> directive in
файле конфигурации <strong>nginx</strong> the <strong>nginx</strong> configuration file
<tt>/etc/nginx/nginx.conf</tt>.</p> <tt>/etc/nginx/nginx.conf</tt>.</p>
<p>Для получения информации о МСВСфера, пожалуйста посетите <a href="https://www.msvsphere-os.ru/">веб-сайт Инферит МСВСфера"</a>. Документация по МСВСфера <a href="https://docs.msvsphere-os.ru/">доступна на веб-сайте дистрибутива МСВСфера</a>.</p> <p>For information on Red Hat Enterprise Linux, please visit the <a href="http://www.redhat.com/">Red Hat, Inc. website</a>. The documentation for Red Hat Enterprise Linux is <a href="http://www.redhat.com/docs/manuals/enterprise/">available on the Red Hat, Inc. website</a>.</p>
</div> </div>
</div> </div>
@ -110,10 +110,10 @@
src="nginx-logo.png" src="nginx-logo.png"
alt="[ Powered by nginx ]" alt="[ Powered by nginx ]"
width="121" height="32" /></a> width="121" height="32" /></a>
<a href="https://www.msvsphere-os.ru/"><img <a href="http://www.redhat.com/"><img
src="icons/poweredby.png" src="poweredby.png"
alt="[ Powered by MSVSphere ]" alt="[ Powered by Red Hat Enterprise Linux ]"
width="294" height="31" /></a> width="88" height="31" /></a>
</div> </div>
</div> </div>
</body> </body>

@ -41,7 +41,7 @@
Name: nginx Name: nginx
Epoch: 1 Epoch: 1
Version: 1.20.1 Version: 1.20.1
Release: 16%{?dist}.1.inferit Release: 16%{?dist}.1
Summary: A high performance web server and reverse proxy server Summary: A high performance web server and reverse proxy server
# BSD License (two clause) # BSD License (two clause)
@ -97,9 +97,6 @@ Patch7: 0008-CVE-2023-44487-HTTP-2-per-iteration-stream-handling.patc
# upstream patch - https://issues.redhat.com/browse/RHEL-40075 # upstream patch - https://issues.redhat.com/browse/RHEL-40075
Patch8: 0009-Optimized-chain-link-usage.patch Patch8: 0009-Optimized-chain-link-usage.patch
# Set length of file size
Patch9: 0009-change-NGX_HTTP_AUTOINDEX_NAME_LEN.patch
BuildRequires: make BuildRequires: make
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gnupg2 BuildRequires: gnupg2
@ -404,9 +401,6 @@ ln -s ../../doc/HTML/en-US \
%else %else
ln -s ../../testpage/index.html \ ln -s ../../testpage/index.html \
%{buildroot}%{_datadir}/nginx/html/index.html %{buildroot}%{_datadir}/nginx/html/index.html
pushd $RPM_BUILD_ROOT%{_datadir}/nginx/html/
ln -s ../../pixmaps/test-page-background.png .
popd
%endif %endif
install -p -m 0644 %{SOURCE102} \ install -p -m 0644 %{SOURCE102} \
%{buildroot}%{_datadir}/nginx/html %{buildroot}%{_datadir}/nginx/html
@ -621,12 +615,6 @@ fi
- Resolves: RHEL-12518 - nginx: HTTP/2: Multiple HTTP/2 enabled web servers are - Resolves: RHEL-12518 - nginx: HTTP/2: Multiple HTTP/2 enabled web servers are
vulnerable to a DDoS attack (Rapid Reset Attack) (CVE-2023-44487) vulnerable to a DDoS attack (Rapid Reset Attack) (CVE-2023-44487)
* Tue Aug 13 2024 Dmitry Samoylik <Dmitriy.Samoylik@softline.com> - 1:1.20.1-14.1.inferit.1
- change NGX_HTTP_AUTOINDEX_NAME_LEN
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1:1.20.1-14
- Rebuilt for MSVSphere 9.1.
* Thu Nov 24 2022 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-14 * Thu Nov 24 2022 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-14
- Resolves: #2086527 - Fix logrotate config and nginx log dir permissions - Resolves: #2086527 - Fix logrotate config and nginx log dir permissions

Loading…
Cancel
Save