|
@@ -22,6 +22,7 @@ http {
|
|
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
|
|
#access_log logs/access.log main;
|
|
|
+ access_log off;
|
|
|
|
|
|
sendfile on;
|
|
|
#tcp_nopush on;
|
|
@@ -31,6 +32,11 @@ http {
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
+ upstream fastcgi_backend {
|
|
|
+ server 127.0.0.1:9001;
|
|
|
+ keepalive 32;
|
|
|
+ }
|
|
|
+
|
|
|
server {
|
|
|
listen 8080;
|
|
|
server_name localhost;
|
|
@@ -63,14 +69,15 @@ http {
|
|
|
index index.php;
|
|
|
|
|
|
location / {
|
|
|
- try_files $uri $uri/ /app.php?$uri&$args;
|
|
|
+ try_files $uri $uri/ /index.php?$uri&$args;
|
|
|
}
|
|
|
|
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
|
#
|
|
|
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;
|
|
@@ -122,4 +129,4 @@ http {
|
|
|
# }
|
|
|
#}
|
|
|
|
|
|
-}
|
|
|
+}
|