fuyu 5 سال پیش
والد
کامیت
b13dd83a53
1فایلهای تغییر یافته به همراه14 افزوده شده و 14 حذف شده
  1. 14 14
      conf.d/api.conf

+ 14 - 14
conf.d/api.conf

@@ -1,19 +1,19 @@
 server {
-    listen       9600;
-    access_log  /data/logs/nginx/api/access.log;
-    error_log   /data/logs/nginx/api/error.log;
-    index	index.html index.php;
-    root /data/gitcode/yuanchengpasc/public/;
+  listen       9600;
+  access_log  /data/logs/nginx/api/access.log;
+  error_log   /data/logs/nginx/api/error.log;
+  index	index.html index.php;
+  root /data/code/yuanchengpasc/public/;
 
-    #add_header Access-Control-Allow-Origin '*';
-    #add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
-    #add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
-    location / {
-        if (!-e $request_filename) {
-          rewrite  ^/(.*)$  /index.php/$1  last;
-            break;
-        }
-    }
+  #add_header Access-Control-Allow-Origin '*';
+  #add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
+  #add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'
+  location / {
+      if (!-e $request_filename) {
+        rewrite  ^/(.*)$  /index.php/$1  last;
+          break;
+      }
+  }
 
 	location  ~ \.(js|css|gif|jpg|jpeg|png|html)$ {
         root /data/code/yuanchengpasc/public/;