Skip to content

Commit 8a090f3

Browse files
authored
Merge pull request laradock#1454 from red-smeg/patch-1
Modify the sample config to support symfony 4
2 parents 1e5d787 + 9b85ac6 commit 8a090f3

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)