Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jan 18, 2025

Optimizes FrankenPHP/Symfony/Laravel by deactivating the file server/try files checks and forwarding directly to the PHP runtime (which is all we need in this case).

@ghost
Copy link
Author

ghost commented Jan 18, 2025

Issue explaining why this prevents unnecessary requests to the filesystem https://github.com/dunglas/frankenphp/pull/1311/files

# by using php instead of php_server
rewrite runtime.php
php {
root /symfony/public
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove the @phpFiles stuff from here? You added it to the franken Caddyfile - seems weird to remove it from symfony.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the previous configuration will check for files, directory index files and general php files, which is unnecessary in this case (there is only 1 entry file).

Rewriting directly to the entryfile will remove all 'file exists' checks..

@msmith-techempower msmith-techempower merged commit da8c29b into TechEmpower:master Jan 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant