Jailed web Apache24 http2_module php-fpm proxy:error (53) AH01095

Hello,
Please help.
I have been trying to overcome this error for a long time, but nothing works.

FreeBSD 14.2 with jailed web server.
apache24-2.4.63 Version 2.4.x of Apache web server
php82-8.2.27 PHP Scripting Language (8.2.X branch)

Every day the log is full of errors.
Code:
[Thu Jan 30 07:57:46.844469 2025] [proxy:error] [pid 57728:tid 27355279211008] (53)Software caused connection abort: [remote x.x.x.x:62424] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
Also, it was noticed that this error occurs in the case of a "crooked" PHP script. When an Ajax request is executed and interrupted. Also when running scripts like PrestaShop and similar ones.

If I disable http2_module or h2 h2c protocols there are no errors and everything works.

If this cannot be fixed, then there must be a way to exclude this particular error from the Apache log.
The operation of a bad PHP script or user action should not cause such an error.

Apache conf
Apache config:
User www
Group www
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
HostnameLookups Off
Timeout 1200
<IfModule proxy_module>
    ProxyTimeout 1200
</IfModule>
<IfModule reqtimeout_module>
    RequestReadTimeout handshake=5 header=20-600,MinRate=500 body=20,MinRate=500
</IfModule>
<IfModule http2_module>
    Protocols h2 h2c http/1.1
    # Tried on/off - no cause effect
    #H2Direct on
    #H2Push on
</IfModule>

<VirtualHost mydomain.com:443>
    SSLEngine on
    SSLCertificateFile /usr/local/etc/letsencrypt/live/mydomain.com/fullchain.pem
    SSLCertificateKeyFile /usr/local/etc/letsencrypt/live/mydomain.com/privkey.pem
    ServerAdmin admin@mydomain.com
    ServerName mydomain.com
    DocumentRoot "/usr/local/www/mydomain.com/www/"
    <Directory "/usr/local/www/mydomain.com/www/">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    <FilesMatch ".+\.ph(ar|p|tml)$">
        SetHandler "proxy:unix:/usr/local/www/mydomain.com/php82-fpm.sock|fcgi://mydomain.com"
    </FilesMatch>
    <Proxy fcgi://mydomain.com>
        ProxySet connectiontimeout=5 timeout=1200
    </Proxy>
    ErrorLog "/usr/local/www/mydomain.com/logs/httpd-error.log"
    CustomLog "/usr/local/www/mydomain.com/logs/httpd-access.log" combined
</VirtualHost>
php-fpm pool
Code:
[mydomain.com]
user = mydomain
group = mydomain
listen = /usr/local/www/mydomain.com/php82-fpm.sock
listen.backlog = -1
listen.owner = mydomain
listen.group = www
listen.mode = 0660
pm = dynamic
pm.max_children = 160
pm.start_servers = 36
pm.min_spare_servers = 24
pm.max_spare_servers = 48
pm.max_spawn_rate = 32
pm.process_idle_timeout = 10s
pm.max_requests = 1000
Apache log
Code:
[Thu Jan 30 07:57:46.844469 2025] [proxy:error] [pid 57728:tid 27355279211008] (53)Software caused connection abort: [remote x.x.x.x:62424] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 07:57:46.844582 2025] [proxy:error] [pid 57728:tid 27355279212800] (53)Software caused connection abort: [remote x.x.x.x:62424] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 08:30:38.363330 2025] [proxy:error] [pid 60256:tid 27355278908672] (53)Software caused connection abort: [remote x.x.x.x:63006] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 08:30:38.363357 2025] [proxy:error] [pid 60256:tid 27355278910464] (53)Software caused connection abort: [remote x.x.x.x:63006] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 09:31:34.260996 2025] [proxy:error] [pid 60260:tid 27355278901504] (53)Software caused connection abort: [remote x.x.x.x:49488] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/ru/
[Thu Jan 30 09:31:34.261029 2025] [proxy:error] [pid 60260:tid 27355279247872] (53)Software caused connection abort: [remote x.x.x.x:49488] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/ru/
[Thu Jan 30 13:47:55.944126 2025] [proxy:error] [pid 66582:tid 27355278905088] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 13:47:55.944188 2025] [proxy:error] [pid 66582:tid 27355278894336] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 13:47:55.944142 2025] [proxy:error] [pid 66582:tid 27355279209728] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 13:47:55.944279 2025] [proxy:error] [pid 66582:tid 27355278899712] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 13:47:55.944210 2025] [proxy:error] [pid 66582:tid 27355278914048] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 13:47:55.944289 2025] [proxy:error] [pid 66582:tid 27355278915840] (53)Software caused connection abort: [remote x.x.x.x:51931] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
[Thu Jan 30 15:06:25.656564 2025] [proxy:error] [pid 70037:tid 27355279200256] (53)Software caused connection abort: [remote x.x.x.x:50343] AH01095: prefetch request body failed to /usr/local/www/mydomain.com/php82-fpm.sock:0 (mydomain.com) from x.x.x.x (), referer: https://mydomain.com/en/
php-fpm log
Code:
[30-Jan-2025 08:29:56] NOTICE: [pool mydomain.com] child 43326 exited with code 0 after 45854.468170 seconds from start
[30-Jan-2025 08:29:56] NOTICE: [pool mydomain.com] child 60766 started
[30-Jan-2025 08:57:05] NOTICE: [pool mydomain.com] child 45413 exited with code 0 after 41572.057731 seconds from start
[30-Jan-2025 08:57:05] NOTICE: [pool mydomain.com] child 61537 started
[30-Jan-2025 09:01:48] NOTICE: [pool mydomain.com] child 45862 exited with code 0 after 40107.743101 seconds from start
[30-Jan-2025 09:01:48] NOTICE: [pool mydomain.com] child 61775 started
[30-Jan-2025 09:03:45] NOTICE: [pool mydomain.com] child 43224 exited with code 0 after 48120.212870 seconds from start
[30-Jan-2025 09:03:45] NOTICE: [pool mydomain.com] child 61797 started
 
Back
Top