Skip to content

Caddy configuration don't allow sub-directory php files to execute. Fixes #20593 #20594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading