Skip to content

Commit cc900a6

Browse files
bkosunmaxhelias
authored andcommitted
fix: prevent access to source code of app index file
1 parent 1b0b32b commit cc900a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frankenphp/Caddyfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@
5353
@frontController path index.php
5454
php @frontController
5555

56-
file_server
56+
file_server {
57+
hide index.php
58+
}
5759
}

0 commit comments

Comments
 (0)