Ngix ошибка при старте с modesecure
Добавлено: Сб дек 28, 2024 5:11 pm
alma 9.4 обновилась до 9.5
поймал ошибку
Перезапуск неуспешный. Сервис не работает.
× nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/nginx.service.d
└─10-limit.conf
Active: failed (Result: exit-code) since Sat 2024-12-28 20:07:30 MSK; 14ms ago
Process: 7192 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 7193 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
CPU: 33ms
Dec 28 20:07:30 hope.an.su systemd[1]: Starting The nginx HTTP and reverse proxy server...
Dec 28 20:07:30 hope.an.su nginx[7193]: nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /etc/nginx/modsecurity.conf. Line: 40. Column: 33. As of ModSecurity version 3.0, SecRequestBodyInMemoryLimit is no longer supported. Instead, you can use your web server configurations to control those values. ModSecurity will follow the web server decision. in /etc/nginx/nginx.conf:105
Dec 28 20:07:30 hope.ian.su nginx[7193]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec 28 20:07:30 hope.an.su systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Dec 28 20:07:30 hope.an.su systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec 28 20:07:30 hope.ian.su systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
поймал ошибку
Перезапуск неуспешный. Сервис не работает.
× nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/nginx.service.d
└─10-limit.conf
Active: failed (Result: exit-code) since Sat 2024-12-28 20:07:30 MSK; 14ms ago
Process: 7192 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 7193 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
CPU: 33ms
Dec 28 20:07:30 hope.an.su systemd[1]: Starting The nginx HTTP and reverse proxy server...
Dec 28 20:07:30 hope.an.su nginx[7193]: nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /etc/nginx/modsecurity.conf. Line: 40. Column: 33. As of ModSecurity version 3.0, SecRequestBodyInMemoryLimit is no longer supported. Instead, you can use your web server configurations to control those values. ModSecurity will follow the web server decision. in /etc/nginx/nginx.conf:105
Dec 28 20:07:30 hope.ian.su nginx[7193]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec 28 20:07:30 hope.an.su systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Dec 28 20:07:30 hope.an.su systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec 28 20:07:30 hope.ian.su systemd[1]: Failed to start The nginx HTTP and reverse proxy server.