-
Notifications
You must be signed in to change notification settings - Fork 424
fix: forwards php_server root to try_files #1729
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
Conversation
|
This behavior is probably also broken in the php_fast_cgi implementation |
|
Looks good, we should also try to upstream this to Caddy. |
| TryFiles: tryFiles, | ||
| TryPolicy: tryPolicy, | ||
| SplitPath: extensions, | ||
| Root: phpsrv.Root, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question though because I currently can't test it - this still falls back to Caddy's root if the one in phpsrv is empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it will fallback, an empty string is the default in the struct (otherwise tests would also fail)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add some more tests for all cases
|
Hmm not sure if this is also an issue upstream since the |
|
Thanks! |
Should fix #1723
The root defined in
php_serverwas never really forwarded totry_files, which led to potentially confusing behavior where thefile_serverroot (coming from php_server) and thetry_filesroot (coming from the caddy route) would differ.