1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pid /app/tmp/pid;
worker_processes auto;
error_log /app/logs/error.log;
events {
worker_connections 1024;
}
http {
include conf/mime.types;
default_type application/octet-stream;
client_body_temp_path /app/tmp/client_body_temp;
fastcgi_temp_path /app/tmp/fastcgi_temp;
proxy_temp_path /app/tmp/proxy_temp;
error_log /app/logs/error.log;
access_log /app/logs/access.log;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name default;
port_in_redirect off;
root /app/www;
index index.html index.php;
try_files $uri $uri/ index.php?$query_string;
location /dav {
try_files $uri $uri/ dav.php;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
include conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
}