8000 minor #14698 Update the Nginx example (sebpacz) · githubfromgui/symfony-docs@3732796 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3732796

Browse files
committed
minor symfony#14698 Update the Nginx example (sebpacz)
This PR was merged into the 4.4 branch. Discussion ---------- Update the Nginx example When I was looking through the Nginx configuration recipe for Symfony 4.x I discovered an important comment that isn’t included in the example in the Nginx section. I think this tip may be useful for those who create their environment using docker containers. In this PR I added the missing comment, which is taken from the recipe on this page: https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/#secure-symfony-4-x. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- f5ebf42 Update the Nginx example
2 parents c6f45d8 + f5ebf42 commit 3732796

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup/web_server_configuration.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ The **minimum configuration** to get your application running under Nginx is:
334334
# Otherwise, PHP's OPcache may not properly detect changes to
335335
# your PHP files (see https://github.com/zendtech/ZendOptimizerPlus/issues/126
336336
# for more information).
337+
# Caveat: When PHP-FPM is hosted on a different machine from nginx
338+
# $realpath_root may not resolve as you expect! In this case try using
339+
# $document_root instead.
337340
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
338341
fastcgi_param DOCUMENT_ROOT $realpath_root;
339342
# Prevents URIs that include the front controller. This will 404:

0 commit comments

Comments
 (0)
0