File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
php-zend-framework/deploy Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
22
# '"$http_user_agent" "$http_x_forwarded_for"';
23
23
24
24
#access_log logs/access.log main;
25
+ access_log off ;
25
26
26
27
sendfile on ;
27
28
#tcp_nopush on;
@@ -31,6 +32,11 @@ http {
31
32
32
33
#gzip on;
33
34
35
+ upstream fastcgi_backend {
36
+ server 127.0.0.1:9001;
37
+ keepalive 32;
38
+ }
39
+
34
40
server {
35
41
listen 8080 ;
36
42
server_name localhost;
@@ -63,14 +69,15 @@ http {
63
69
index index.php;
64
70
65
71
location / {
66
- try_files $uri $uri / /app .php?$uri &$args ;
72
+ try_files $uri $uri / /index .php?$uri &$args ;
67
73
}
68
74
69
75
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
70
76
#
71
77
location ~ \.php$ {
72
78
try_files $uri =404 ;
73
- fastcgi_pass 127.0.0.1:9001;
79
+ fastcgi_pass fastcgi_backend;
80
+ fastcgi_keep_conn on;
74
81
fastcgi_index index.php;
75
82
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
76
83
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
@@ -122,4 +129,4 @@ http {
122
129
# }
123
130
#}
124
131
125
- }
132
+ }
You can’t perform that action at this time.
0 commit comments