Skip to content

Commit 8377b29

Browse files
committed
minor #20594 Caddy configuration don't allow sub-directory php files to execute. Fixes #20593 (sarim)
This PR was merged into the 6.4 branch. Discussion ---------- Caddy configuration don't allow sub-directory php files to execute. Fixes #20593 Fixes #20593 For details please check linked issue. Commits ------- 75a197b Caddy configuration don't allow sub-directory php files to execute. Fixes #20593
2 parents 8dfe867 + 75a197b commit 8377b29

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)