How to set flushpackets=on in apache FCGI only for selected url - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Monday, October 2, 2023

How to set flushpackets=on in apache FCGI only for selected url

I'm trying to configure my Apache web server to use the flushpackets=on with php-fpm FCGI backend, but I want this setting to apply only to a specific URL.

My current php-fpm config is:

<IfModule !mod_php5.c>
  <IfModule !mod_php7.c>
    # Enable http authorization headers
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

    <FilesMatch \.(php|phar)$>
        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
    </FilesMatch>
    <Proxy "fcgi://localhost" enablereuse=on flushpackets=on max=10>
       ProxySet timeout=100
    </Proxy>
  </IfModule>
</IfModule>

This sets flushpackets on for all request, but I want it have enabled only for a specific url, like /endpoint_1/



source https://stackoverflow.com/questions/77211922/how-to-set-flushpackets-on-in-apache-fcgi-only-for-selected-url

No comments:

Post a Comment