From 6b6d7d89fd805c52c42c1a02eafe7786726b9d6b Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Fri, 19 Jun 2015 22:49:23 -0400 Subject: [PATCH] add fastcgi_keep_conn on --- kernel-lib/services/nginx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel-lib/services/nginx.js b/kernel-lib/services/nginx.js index 71b7932..e8282c3 100644 --- a/kernel-lib/services/nginx.js +++ b/kernel-lib/services/nginx.js @@ -269,8 +269,9 @@ exports.nginx.prototype.makeConfig = function() { siteCfg += ' location / {\n'; siteCfg += ' include '+me.options.miscConfigDir+'/fastcgi_params;\n'; - siteCfg += ' fastcgi_param HTTPS $php_https;\n'; + siteCfg += ' fastcgi_keep_conn on;\n'; siteCfg += ' fastcgi_pass '+phpSocketPath+';\n'; + siteCfg += ' fastcgi_param HTTPS $php_https;\n'; siteCfg += ' fastcgi_param PATH_INFO $fastcgi_script_name;\n'; siteCfg += ' fastcgi_param SITE_ROOT '+siteDir+';\n'; siteCfg += ' fastcgi_param SCRIPT_FILENAME '+me.options.bootstrapDir+'/web.php;\n';