Skip to content

Commit

Permalink
NGX-880: Update Apache config (#71)
Browse files Browse the repository at this point in the history
- Changed disablereuse from off to on to ensure TCP connections close after each request. This addresses PHP-FPM's single-connection handling and prevents excess backend connections from exhausting fpm workers
  • Loading branch information
combssm authored May 28, 2024
1 parent d73b552 commit cecb48c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/etc/httpd/conf.d/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
Redirect permanent / https://{{ site_domain }}/
{% else %}
<Proxy "unix:{{ php_fpm_socket_path }}|fcgi://{{ system_user }}">
ProxySet disablereuse=off
ProxySet disablereuse=on
</Proxy>

<FilesMatch \.php$>
Expand Down Expand Up @@ -105,7 +105,7 @@
SSLCertificateChainFile /etc/letsencrypt/live/{{ site_domain }}/chain.pem

<Proxy "unix:{{ php_fpm_socket_path }}|fcgi://{{ system_user }}">
ProxySet disablereuse=off
ProxySet disablereuse=on
</Proxy>

<FilesMatch \.php$>
Expand Down

0 comments on commit cecb48c

Please sign in to comment.