Skip to content

Commit

Permalink
minor #20594 Caddy configuration don't allow sub-directory php files …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
javiereguiluz committed Jan 24, 2025
2 parents 8dfe867 + 75a197b commit 8377b29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ When using Caddy on the server, you can use a configuration like this:
# otherwise, use PHP-FPM (replace "unix//var/..." with "127.0.0.1:9000" when using TCP)
php_fastcgi unix//var/run/php/php8.3-fpm.sock {
# only fallback to root index.php aka front controller.
try_files {path} index.php
# optionally set the value of the environment variables used in the application
# env APP_ENV "prod"
# env APP_SECRET "<app-secret-id>"
Expand Down

0 comments on commit 8377b29

Please sign in to comment.