From cc900a6d11bef8ac413ac36aa4ff3253445ccbb1 Mon Sep 17 00:00:00 2001 From: Borislav Kosun <16259603+bkosun@users.noreply.github.com> Date: Fri, 3 Jan 2025 03:49:08 +0200 Subject: [PATCH] fix: prevent access to source code of app index file --- frankenphp/Caddyfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frankenphp/Caddyfile b/frankenphp/Caddyfile index 573219c..a35b3ba 100644 --- a/frankenphp/Caddyfile +++ b/frankenphp/Caddyfile @@ -53,5 +53,7 @@ @frontController path index.php php @frontController - file_server + file_server { + hide index.php + } }