похоже, имеем очень простую причину: клиенты, которые закрывают соединение, прежде чем дождаться ответа сервера.
[Fri Jul 21 07:20:27.826755 2023] [fcgid:warn] [pid 5043] (32)Broken pipe: [client 217.66.154.23:52494] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer:
217.x.1x.x - - [21/Jul/2023:07:20:27 +0300] "GET /vakansii_sankt_peterburg/?filter=show HTTP/1.0" 500 50326 "https://sait.ru/vakansii_kirishi/" "Mozilla/5.0 (Linux; arm; Android 10; M2006C3LG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 YaApp_Android/23.36.1 YaSearchBrowser/23.36.1 BroPP/1.0 SA/3 Mobile Safari/537.36"
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/vhosts/*/*.conf;
client_max_body_size 128m;
proxy_buffering on; # по умолчанию
proxy_buffer_size 4k;
proxy_buffers 32 4k; # до 132K + ядерные буфера
proxy_max_temp_file_size 0;
server {
server_name localhost;
disable_symlinks if_not_owner;
listen 80;
listen [::]:80;
include /etc/nginx/vhosts-includes/*.conf;
location @fallback {
error_log /dev/null crit;
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
access_log off ;
}
}
}
[warn] 14305#14305: *917714 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/9/44/0000000449
proxy_buffering on; # по умолчанию
proxy_buffer_size 4k;
proxy_buffers 32 4k; # до 132K + ядерные буфера
proxy_max_temp_file_size 0;
Broken pipe:
2023/07/21 09:45:23 [crit] 14305#14305: *878065 SSL_do_handshake() failed (SSL: error:140944E7:SSL routines:ssl3_read_bytes:reason(1255):SSL alert number 255) while SSL handshaking
server {
server_name сайт.ru *.сайт.ru www.сайт.ru;
charset off;
index index.php index.html;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/сайт.ru/*.conf;
access_log /var/www/httpd-logs/сайт.ru.access.log;
error_log /var/www/httpd-logs/сайт.ru.error.log notice;
set $root_path /var/www/сайт.ru/data/www;
location / {
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
expires 7d;
try_files $uri $uri/ @fallback;
}
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @fallback;
}
location / {
try_files /does_not_exists @fallback;
}
}
if ($host ~* ^((.*).сайт.ru)$) {
set $subdomain $1;
}
gzip on;
gzip_comp_level 4;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
return 301 https://$host:443$request_uri;
set $subdomain сайт.ru;
location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
access_log off;
include /etc/nginx/vhosts-resources/сайт.ru/dynamic/*.conf;
}
ssi on;
root $root_path/$subdomain;
listen 11.111.11.11:80;
}
server {
server_name сайт.ru *.сайт.ru www.сайт.ru;
ssl_certificate "/var/www/httpd-cert/сайт.ru/сайт.ru_le3.crtca";
ssl_certificate_key "/var/www/httpd-cert/сайт.ru/сайт.ru_le3.key";
ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
charset off;
index index.php index.html;
disable_symlinks if_not_owner from=$root_path;
include /etc/nginx/vhosts-includes/*.conf;
include /etc/nginx/vhosts-resources/сайт.ru/*.conf;
access_log /var/www/httpd-logs/сайт.ru.access.log;
error_log /var/www/httpd-logs/сайт.ru.error.log notice;
set $root_path /var/www/сайт.ru/data/www;
if ($host ~* ^((.*).сайт.ru)$) {
set $subdomain $1;
}
proxy_max_temp_file_size 2048m;
gzip on;
gzip_comp_level 4;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml;
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @fallback;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
expires 7d;
try_files $uri $uri/ @fallback;
}
location / {
try_files /does_not_exists @fallback;
}
}
set $subdomain сайт.ru;
location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
access_log off;
include /etc/nginx/vhosts-resources/сайт.ru/dynamic/*.conf;
}
add_header Strict-Transport-Security "max-age=31536000;";
ssi on;
root $root_path/$subdomain;
listen 11.111.11.11:443 ssl;
}
proxy_pass http://127.0.0.1:8080;
я меняю на proxy_pass http://http_backend;
upstream http_backend{
server 127.0.0.1:8080 max_fails=0;
keepalive 16;
proxy_http_version 1.1;
proxy_set_header Connection "";
}