Skip to content

Commit 9b85ac6

Browse files
author
red-smeg
authored
Modify the sample config to support symfony 4
This allows Laradock to work with symfony 4 projects
1 parent 871a9d0 commit 9b85ac6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

nginx/sites/symfony.conf.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ server {
1111
try_files $uri @rewriteapp;
1212
}
1313

14+
# For Symfony 3
1415
location @rewriteapp {
1516
rewrite ^(.*)$ /app.php/$1 last;
1617
}
18+
19+
# For Symfony 4 config
20+
# location @rewriteapp {
21+
# rewrite ^(.*)$ /index.php/$1 last;
22+
# }
1723

18-
location ~ ^/(app|app_dev|config)\.php(/|$) {
24+
location ~ ^/(app|app_dev|config|index)\.php(/|$) {
1925
fastcgi_pass php-upstream;
2026
fastcgi_split_path_info ^(.+\.php)(/.*)$;
2127
include fastcgi_params;

0 commit comments

Comments
 (0)