-
Notifications
You must be signed in to change notification settings - Fork 3
/
WeEngine.conf
36 lines (29 loc) · 981 Bytes
/
WeEngine.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
33
34
35
36
server {
listen 80;
server_name 127.0.0.1;
root /home/WeEngine;
include /home/WeEngine/addons/*/.htaccess;
location / {
try_files $uri $uri/ /index.php?$query_string;
index index.html index.htm index.php;
}
rewrite "^/((MP_verify_.+|[A-Za-z0-9]{10})\.txt)$" /web/index.php?c=utility&a=mp-verify&verify=$1 last;
location ~ \.php(.*)$ {
fastcgi_pass unix://tmp/php-cgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/home/:/tmp/:/usr/tmp/:/proc/";
include fastcgi_params;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*\.(js|css)?$ {
expires 12h;
}
location ~ /\. {
deny all;
}
access_log off;
}