|
@@ -1,5 +1,5 @@
|
|
|
server {
|
|
|
- server_name me.5dev.cn jiaoyou.qizhixiong.com;
|
|
|
+ server_name me.5dev.cn;
|
|
|
listen 80;
|
|
|
|
|
|
autoindex on;
|
|
@@ -8,21 +8,17 @@ server {
|
|
|
|
|
|
charset $charset;
|
|
|
|
|
|
- #set $rootdir /www/jiaoyou20190507/public;
|
|
|
- set $rootdir /www/txhl-zsc/fxb-front;
|
|
|
+ set $rootdir /www/huala_v2/public;
|
|
|
root $rootdir;
|
|
|
index index.php index.html;
|
|
|
- if ( $request_uri ~* /(applet\/content|applet_on\/content) ) {
|
|
|
- rewrite ^/(.*)/content/(.*) /$1/content/index.php?$2 last;
|
|
|
+ if (!-d $request_filename){
|
|
|
+ set $rule_0 1$rule_0;
|
|
|
}
|
|
|
- if ( $request_uri ~* /log\/data.add ) {
|
|
|
- rewrite ^/log/(.*?) /log/index.php?$1 last;
|
|
|
+ if (!-f $request_filename){
|
|
|
+ set $rule_0 2$rule_0;
|
|
|
}
|
|
|
- if ( $request_uri ~* /system/wechat ) {
|
|
|
- rewrite ^/system/wechat /system/index.php?m=payment&a=wechat_notify last;
|
|
|
- }
|
|
|
- if ( $request_uri ~* /pay/pay/notify ) {
|
|
|
- rewrite ^/pay/pay/notify/([0-9+]) /pay/pay/index.php?l=api.notify&account_id=$1 last;
|
|
|
+ if ($rule_0 = "21"){
|
|
|
+ rewrite ^/(.*)$ /index.php?s=$1 last;
|
|
|
}
|
|
|
location / {
|
|
|
# First attempt to serve request as file, then
|