php-fpm sharing worker question

110 views
Skip to first unread message

Toth Tivadar

unread,
Sep 23, 2022, 1:09:33 PM9/23/22
to highload-php-en
Dear All,

First I'm new in apache/php-fpm, so forgive me if I ask something trivial.
I have an apache with this configuration /the relevant part/:
...
        LogLevel debug proxy_fcgi_module:debug
        LogLevel debug proxy_module:debug
        LogLevel debug rewrite_module:debug

        <Proxy fcgi://127.0.0.1:9000>
        ProxySet timeout=600
        </Proxy>

        <FilesMatch \.php$>
        SetHandler "proxy:fcgi://127.0.0.1:9000"
        </FilesMatch>

        <LocationMatch "/fpm-status">
                ProxyPass fcgi://127.0.0.1:9000/fpm-status
                Order Deny,Allow
                Deny from all
                Allow from all
        </LocationMatch>

I have this configuration on more site, without the debug log lines. However when I reload apache configuration with this debug log in config file, it shows me an proxy:info about sharing workers, exactly this::
[proxy:info] [pid 843405] AH01145: Sharing worker 'fcgi://127.0.0.1:9000' instead of creating new worker 'fcgi://127.0.0.1:9000/fpm-status'

As I know the SetHandler doesn't create worker, so that directive not relevant (please confirm).
So the:
"<Proxy fcgi://127.0.0.1:9000>"
and the
"ProxyPass fcgi://127.0.0.1:9000/fpm-status"
lines create one workers, because the worker created in the first line's URL (Proxy fcgi://127.0.0.1:9000) is a substring of the second (ProxyPass fcgi://127.0.0.1:9000/fpm-status).

My question:
Is this a correct configuration?
I think the info messages are normal in debug mode, but this one suggested me that there is a misconfig somewhere...

thank you

Reply all
Reply to author
Forward
0 new messages