Explorar el Código

Modify the sample config to support symfony 4

This allows Laradock to work with symfony 4 projects
red-smeg hace 7 años
padre
commit
9b85ac6c2b
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      nginx/sites/symfony.conf.example

+ 7 - 1
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;