PHP 8.3/Apache + MariaDB 11.4 with the repo bind-mounted as web root. Apache denies dotfiles (.env, .git), the docker files and /install-dev (installation runs via CLI as www-data, see docker-compose.yml). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
358 B
Plaintext
8 lines
358 B
Plaintext
# The repo is bind-mounted as web root: never serve dotfiles (.env, .git, ...) or docker files.
|
|
RedirectMatch 404 "/\.(?!well-known/)"
|
|
RedirectMatch 404 "^/(docker/|docker-compose\.yml)"
|
|
# Installation is done via CLI (see docker-compose.yml); a web re-install would wipe the database.
|
|
RedirectMatch 404 "^/install-dev"
|
|
ServerTokens Prod
|
|
ServerSignature Off
|