From 9b85ac6c2b3e70f89c6477ba9924e9b2fff664ef Mon Sep 17 00:00:00 2001 From: red-smeg Date: Wed, 28 Mar 2018 14:46:19 -0400 Subject: [PATCH] Modify the sample config to support symfony 4 This allows Laradock to work with symfony 4 projects --- nginx/sites/symfony.conf.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/sites/symfony.conf.example b/nginx/sites/symfony.conf.example index 6796715..acb0aad 100644 --- a/nginx/sites/symfony.conf.example +++ b/nginx/sites/symfony.conf.example @@ -11,11 +11,17 @@ server { try_files $uri @rewriteapp; } + # For Symfony 3 location @rewriteapp { rewrite ^(.*)$ /app.php/$1 last; } + + # For Symfony 4 config + # location @rewriteapp { + # rewrite ^(.*)$ /index.php/$1 last; + # } - location ~ ^/(app|app_dev|config)\.php(/|$) { + location ~ ^/(app|app_dev|config|index)\.php(/|$) { fastcgi_pass php-upstream; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params;