-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathnginx.conf
More file actions
21 lines (20 loc) · 820 Bytes
/
nginx.conf
File metadata and controls
21 lines (20 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
listen 80;
server_name www.fend.com www.fend1.com;
access_log /tmp/www.fend.acc.log;
error_log /tmp/www.fend.err.log;
# root /Users/xcl/Code/fend/www;
root /Users/xcl/Code/fend-project/fend-demo/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php7.0-fpm.sock;
fastcgi_index index.php;
root /Users/xcl/Code/fend-project/fend-demo/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}