Skip to content

Update default.conf.sample to deny dotfile access#73

Open
nemchik wants to merge 2 commits intomasterfrom
deny-dotfile-access
Open

Update default.conf.sample to deny dotfile access#73
nemchik wants to merge 2 commits intomasterfrom
deny-dotfile-access

Conversation

@nemchik
Copy link
Copy Markdown
Member

@nemchik nemchik commented May 5, 2026

No description provided.

Signed-off-by: Eric Nemchik <eric@nemchik.com>
Copilot AI review requested due to automatic review settings May 5, 2026 21:36
@LinuxServer-CI LinuxServer-CI moved this to PRs Ready For Team Review in Issue & PR Tracker May 5, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the default nginx site configuration sample to block access to dotfiles while still permitting access to /.well-known (commonly needed for ACME challenges), and bumps the embedded version header.

Changes:

  • Added explicit location handling to allow /.well-known requests.
  • Added a regex location to return 404 for dotfile paths.
  • Reformatted the PHP if (!-f ...) guard into a multi-line block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

index index.html index.htm index.php;

# Allow access to the ".well-known" directory
location ^~ /.well-known {
@LinuxServer-CI
Copy link
Copy Markdown
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/cops/4.3.1-pkg-f1788705-dev-72dfe8df2b534bad6c1f89b8ca2b3d13cc1e5325-pr-73/index.html
https://ci-tests.linuxserver.io/lspipepr/cops/4.3.1-pkg-f1788705-dev-72dfe8df2b534bad6c1f89b8ca2b3d13cc1e5325-pr-73/shellcheck-result.xml

Tag Passed
amd64-4.3.1-pkg-f1788705-dev-72dfe8df2b534bad6c1f89b8ca2b3d13cc1e5325-pr-73
arm64v8-4.3.1-pkg-f1788705-dev-72dfe8df2b534bad6c1f89b8ca2b3d13cc1e5325-pr-73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: PRs Ready For Team Review

Development

Successfully merging this pull request may close these issues.

3 participants