-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paths1s2.conf
More file actions
29 lines (26 loc) · 820 Bytes
/
s1s2.conf
File metadata and controls
29 lines (26 loc) · 820 Bytes
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
server {
root /Users/epailive/web/php-s1s2/s1s2/web;
listen 80;
server_name www.s1s2.com;
error_log /var/log/s1s2yii.log;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ index.php/$1 last;
break;
}
}
location ~* ^.+\.(css|js|gif|png|jpg|jpeg|rar|html|htm|shtml|swf|json|xml|cur|ico|ttf|woff|woff2)$ {
access_log off;
expires 7d;
}
location ~* ^.+\.(csv|xls)$ {
access_log off;
}
location ~ / {
fastcgi_param SCRIPT_FILENAME /Users/epailive/web/php-s1s2/s1s2/web/index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}