Skip to content

[stable34] docs: block access to metadata files in nginx sample configs - #15144

Merged
szaimen merged 1 commit into
stable34from
backport/15102/stable34
Jun 15, 2026
Merged

[stable34] docs: block access to metadata files in nginx sample configs#15144
szaimen merged 1 commit into
stable34from
backport/15102/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Jun 15, 2026

Copy link
Copy Markdown

Backport of PR #15102

The nginx sample configs served top-level metadata files (composer.json,
composer.lock, package.json, package-lock.json, core/shipped.json) as plain
files, since they matched neither a 404 block nor the static-asset extension
list and fell through to `try_files $uri`. This leaked dependency information.

Add a 404 location block matching these files to both the root and subdir
sample configs, alongside the existing rules that hide non-public paths.

Fixes #15101

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen
szaimen enabled auto-merge June 15, 2026 14:54
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

No RST documentation pages changed in this PR.

Last updated: Mon, 15 Jun 2026 17:43:38 GMT

@szaimen
szaimen merged commit 40e3fa2 into stable34 Jun 15, 2026
25 checks passed
@szaimen
szaimen deleted the backport/15102/stable34 branch June 15, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants