-
Notifications
You must be signed in to change notification settings - Fork 169
/
阿里云nginx.conf
32 lines (24 loc) · 908 Bytes
/
阿里云nginx.conf
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
server {
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /alidata/www/default/aci;
location / {
index index.html index.php;
}
location ~ \.php($|/) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
access_log /alidata/log/nginx/access/default.log;
error_log /alidata/log/nginx/error/default.log;
}