Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #59 #60

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## [5.0.2] - 2024-02-23

Tightened Apache directory permissions to deny access to dotfiles and system directories. This also fixes #59.

## [5.0.1] - 2024-02-16

We have made some minor improvements to the content of debug messages and variable naming.
Expand Down
14 changes: 5 additions & 9 deletions src/php/with-apache/rootfs/etc/apache2/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,13 @@ Timeout 60
</Directory>

# Security settings
<FilesMatch "\.(ht.*|ini|log|sh|c)$">
Require all denied
<FilesMatch "^\.(ht|config|ssh|pem|key|pass|ini|log|sh|c)$">
Redirect 404 /
</FilesMatch>

<DirectoryMatch "/\.(?!well-known)">
Require all denied
</DirectoryMatch>

<FilesMatch "/\.(?!well-known)">
Require all denied
</FilesMatch>
<LocationMatch "(^|/)\.(?!well-known)">
Redirect 404 /
</LocationMatch>

# Set basic settings for document root
<Directory ${APP_PATH}>
Expand Down