Skip to content
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

Add specific PHP root location #1

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

thirdeyenick
Copy link

@thirdeyenick thirdeyenick commented Jan 17, 2024

This adds a specific nginx.conf root location which allows to handle all URIs, which are referring to non existing files, by index.php. Frameworks like Symfony, Laravel or Wordpress need this for proper routing. The specific block can be disabled by setting the env variable BP_PHP_DISABLE_ROOT_LOCATION to true.

There exists a corresponding upstream issue.

This adds a special root location block to the nginx.conf which will make all URIs which request non existing files to be handled by index.php. This is how some frameworks like Laravel, Symfony, Wordpress, etc are handling URIs. The special root location block can be disabled by using BP_PHP_DISABLE_ROOT_LOCATION=true.
@thirdeyenick thirdeyenick merged commit 196fe3c into main Jan 18, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants