php / php/php-src

/status?json&full is not suppressed when access.suppress_path used

Open
#10,116 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature SAPI: fpm
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

The following php-fpm configuration is supposed to not log requests made on /status:

[www]
pm = "static"
pm.max_children = 5
pm.process_idle_timeout = 1m;
pm.max_requests = 500
pm.status_path = /status
access.suppress_path[] = /status

However, the Docker container running from the image php:8.2-fpm, is still logging it:

127.0.0.1 -  16/Dec/2022:10:39:41 +0000 "GET /status" 200

Is this the expected behavior?

PHP Version

8.2.0

Operating System

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the PHP-FPM configuration and the php:8.2-fpm Docker image described here, then trace how requests to pm.status_path are handled alongside access.suppress_path. Confirm whether /status should be excluded from access logging; done when the behavior is corrected or the expected behavior is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.