Browse Source

Faster FCGI conf (#4369)

* Faster FCGI conf

* Faster FCGI conf

* Faster FCGI conf

* Revert phalcon fcgi

* Revert Slim
Joan Miquel 6 years ago
parent
commit
2ff44fdf18
1 changed files with 4 additions and 7 deletions
  1. 4 7
      frameworks/PHP/phpixie/deploy/nginx.conf

+ 4 - 7
frameworks/PHP/phpixie/deploy/nginx.conf

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