Sfoglia il codice sorgente

Faster FCGI config (#4386)

With the fastest fail so using another not so fast #4341
Joan Miquel 6 anni fa
parent
commit
11473a3030

+ 2 - 4
frameworks/PHP/codeigniter/deploy/nginx-fpm.conf

@@ -28,14 +28,12 @@ http {
     index index.php;
 
     location / {
-      try_files $uri $uri/ /index.php?$uri&$args;
+      try_files $uri /index.php?$uri&$args;
     }
 
-    location ~ \.php$ {
-       
+    location = /index.php {
       fastcgi_pass fastcgi_backend;
       fastcgi_keep_conn on;
-      fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
       include /etc/nginx/fastcgi_params;
     }

+ 2 - 4
frameworks/PHP/codeigniter/deploy/nginx-hhvm.conf

@@ -28,14 +28,12 @@ http {
     index index.php;
 
     location / {
-      try_files $uri $uri/ /index.php?$uri&$args;
+      try_files $uri /index.php?$uri&$args;
     }
 
-    location ~ \.php$ {
-       
+    location = /index.php {
       fastcgi_pass fastcgi_backend;
       fastcgi_keep_conn on;
-      fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
       include /etc/nginx/fastcgi_params;
     }

+ 2 - 4
frameworks/PHP/cygnite/deploy/nginx.conf

@@ -50,14 +50,12 @@ http {
         index  index.php;
 
         location / {
-            try_files $uri $uri/ /index.php?$uri&$args;
+            try_files $uri /index.php?$uri&$args;
         }
 
-        location ~ \.php$ {
-             
+        location = /index.php {
             fastcgi_pass   fastcgi_backend;
             fastcgi_keep_conn on;
-            fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
             include        /etc/nginx/fastcgi_params;
         }

+ 2 - 4
frameworks/PHP/fat-free/deploy/nginx.conf

@@ -50,14 +50,12 @@ http {
         index  index.php;
 
         location / {
-            try_files $uri $uri/ /index.php?$uri&$args;
+            try_files $uri /index.php?$uri&$args;
         }
 
-        location ~ \.php$ {
-             
+        location = /index.php {
             fastcgi_pass   fastcgi_backend;
             fastcgi_keep_conn on;
-            fastcgi_index  index.php;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
             include        /etc/nginx/fastcgi_params;
         }

+ 1 - 2
frameworks/PHP/slim/deploy/nginx-fpm-5.conf

@@ -53,8 +53,7 @@ http {
             try_files $uri /index.php?$uri&$args;
         }
 
-        location ~ \.php$ {
-
+        location = /index.php {
             fastcgi_pass   fastcgi_backend;
             fastcgi_keep_conn on;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

+ 1 - 2
frameworks/PHP/slim/deploy/nginx-fpm-7.conf

@@ -53,8 +53,7 @@ http {
             try_files $uri /index.php?$uri&$args;
         }
 
-        location ~ \.php$ {
-
+        location = /index.php {
             fastcgi_pass   fastcgi_backend;
             fastcgi_keep_conn on;
             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

+ 5 - 7
frameworks/PHP/slim/deploy/nginx-hhvm.conf

@@ -49,16 +49,14 @@ http {
         index index.php;
 
         location / {
-            try_files $uri $uri/ /index.php?$uri&$args;
+            try_files $uri /index.php?$uri&$args;
         }
 
-        location ~ \.php$ {
-             
-            fastcgi_pass fastcgi_backend;
+        location = /index.php {
+            fastcgi_pass   fastcgi_backend;
             fastcgi_keep_conn on;
-            fastcgi_index index.php;
-            fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
-            include /etc/nginx/fastcgi_params;
+            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
+            include        /etc/nginx/fastcgi_params;
         }
     }
 }