Unverified Commit 9b85ac6c authored by red-smeg's avatar red-smeg Committed by GitHub

Modify the sample config to support symfony 4

This allows Laradock to work with symfony 4 projects
parent 871a9d03
...@@ -11,11 +11,17 @@ server { ...@@ -11,11 +11,17 @@ server {
try_files $uri @rewriteapp; try_files $uri @rewriteapp;
} }
# For Symfony 3
location @rewriteapp { location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last; 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_pass php-upstream;
fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params; include fastcgi_params;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment