|
@@ -12,7 +12,6 @@ events {
|
|
|
worker_connections 1024;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
http {
|
|
|
include /usr/local/nginx/conf/mime.types;
|
|
|
default_type application/octet-stream;
|
|
@@ -31,6 +30,11 @@ http {
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
+ upstream fastcgi_backend {
|
|
|
+ server 127.0.0.1:9001;
|
|
|
+ keepalive 32;
|
|
|
+ }
|
|
|
+
|
|
|
server {
|
|
|
listen 8080;
|
|
|
server_name localhost;
|
|
@@ -70,7 +74,8 @@ http {
|
|
|
#
|
|
|
location ~ \.php$ {
|
|
|
try_files $uri =404;
|
|
|
- fastcgi_pass 127.0.0.1:9001;
|
|
|
+ fastcgi_pass fastcgi_backend;
|
|
|
+ fastcgi_keep_conn on;
|
|
|
fastcgi_index index.php;
|
|
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|