8000 Merge branch '7.2' into 7.3 · symfony/symfony-docs@252b908 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/sessions-eed3aa0554dd.js" defer="defer">

Commit 252b908

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Caddy configuration don't allow sub-directory php files to execute. Fixes #20593
2 parents 171af72 + 1254654 commit 252b908

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup/web_server_configuration.rst

Lines changed: 3 additions & 0 deletions
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)
0