Restore backward-compatible nginx config files for PHP images#2936
Merged
Saipriya-1144 merged 3 commits intoJun 22, 2026
Conversation
vijaysaayi
approved these changes
Jun 22, 2026
surenderssm
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The official nginx.org package ships minimal config compared to the sury.org nginx package. Customers using custom nginx configs that reference files from the old image would experience hard crashes (
nginx: [emerg] ... No such file or directory), causing their sites to go completely down.Changes
Fix: sites-enabled symlink
COPY default.confwith properln -ssymlink (sites-enabled → sites-available)Patch: mime.types and fastcgi_params
video/ogg ogvandvideo/x-matroska mkvto mime.typesfastcgi_param REMOTE_USER $remote_userto fastcgi_paramsRestore: Missing config files
fastcgi.conf— used byinclude fastcgi.conf;(differs from fastcgi_params by including SCRIPT_FILENAME)proxy_params— used byinclude proxy_params;in reverse proxy setupssnippets/fastcgi-php.conf— standard PHP snippet referenced in many tutorialsRestore: Empty directories
modules-enabled/— prevents crash if customer config hasinclude /etc/nginx/modules-enabled/*.conf;modules-available/— existed in old image (was empty)The purpose of this PR is explained in this message or in an issue. If an issue please include a reference as #<issue_number>.
Tests are included and/or updated for code changes.
Proper license headers are included in each file.