Skip to content

Commit 1254654

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: Caddy configuration don't allow sub-directory php files to execute. Fixes #20593
2 parents 4bae437 + 8079468 commit 1254654

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup/web_server_configuration.rst

+3
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ When using Caddy on the server, you can use a configuration like this:
207207
208208
# otherwise, use PHP-FPM (replace "unix//var/..." with "127.0.0.1:9000" when using TCP)
209209
php_fastcgi unix//var/run/php/php8.3-fpm.sock {
210+
# only fallback to root index.php aka front controller.
211+
try_files {path} index.php
212+
210213
# optionally set the value of the environment variables used in the application
211214
# env APP_ENV "prod"
212215
# env APP_SECRET "<app-secret-id>"

0 commit comments

Comments
 (0)