-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add Nginx configuration to environment variables #7044
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
@@ -40,13 +40,41 @@ the following ``VirtualHost`` configuration: | |||
</Directory> | |||
</VirtualHost> | |||
|
|||
For Nginx web servers, the environment variables can be set with `fastcgi_param`_ |
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.
[...] with the fastcgi_param
[...]
@@ -40,13 +40,41 @@ the following ``VirtualHost`` configuration: | |||
</Directory> | |||
</VirtualHost> | |||
|
|||
For Nginx web servers, the environment variables can be set with `fastcgi_param`_ | |||
directive. For example in the configuration file where the ``fastcgi_params`` |
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.
For example, in [...]
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.
By the way, is the part about the included fastcgi_params
file mandatory? I mean is it important that this file is imported?
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.
The fastcgi_params
file includes other server and execution environment information defined with fastcgi_param
such as:
DOCUMENT_ROOT, SERVER_ADDR etc. It is not essential to be on this place. More because of a convenience and according to other examples as well. The custom defined environment variables would be set also without this file in PHP later on but the PHP $_SERVER
would not be filled with other info.
👍 LGTM |
I don't use Nginx, but this looks 👍 to me. Thanks @peterkokot. |
Thank you @peterkokot. |
* 2.7: [#7044] minor tweak Add Nginx configuration to environment variables Fix typo in doctrine.rst (to manage) Changed RFC links from drafts to proposed standarts Remove a dead link to the PR header Minor improvements for the contribution guide use single quotes for YAML strings Fix incorrect callback validation example Fix a typo in the serializer doc Fix 404 error link for American English Oxford Dictionary Use strict comparison
* 2.8: [#7044] minor tweak Add Nginx configuration to environment variables Fix typo in doctrine.rst (to manage) Changed RFC links from drafts to proposed standarts Remove a dead link to the PR header Minor improvements for the contribution guide use single quotes for YAML strings Fix incorrect callback validation example Fix a typo in the serializer doc Fix 404 error link for American English Oxford Dictionary Use strict comparison
* 3.1: [#7044] minor tweak Add Nginx configuration to environment variables Update the Apache Router article to deprecate it entirely Fix typo in doctrine.rst (to manage) Changed RFC links from drafts to proposed standarts Remove a dead link to the PR header Minor improvements for the contribution guide use single quotes for YAML strings Fix incorrect callback validation example Fix a typo in the serializer doc Fix 404 error link for American English Oxford Dictionary Use strict comparison
The environment variables example in the configuration chapter currently includes only configuration for Apache web server. This patch adds also Nginx with the
fastcgi_param
directive.Thank you for considering merging it. In case there needs to be some additional rewording or changes done, let me know.