rabin 6 سال پیش
والد
کامیت
86c7ca0253
2فایلهای تغییر یافته به همراه9 افزوده شده و 13 حذف شده
  1. 8 12
      container/conf/web/nginx/conf.d/domain.conf
  2. 1 1
      container/conf/web/nginx/conf.d/site.conf

+ 8 - 12
container/conf/web/nginx/conf.d/domain.conf

@@ -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

+ 1 - 1
container/conf/web/nginx/conf.d/site.conf

@@ -52,7 +52,7 @@ server {
             rewrite ^/pay/pay/notify/([0-9+]) /pay/pay/index.php?l=api.notify&account_id=$1 last;
     }
     if ( $request_uri ~* /public ) {
-            rewrite ^/public/(.*?) /public/index.php?$1 last;
+            rewrite ^/(.*)/public/(.*) /$1/public/index.php?$2 last;
     }
     location / {
                 # First attempt to serve request as file, then