Forráskód Böngészése

wechat_deprecated

fuyu 3 éve
szülő
commit
b7030b4b51

+ 24 - 0
https.d/ris3.wechat.client.pacsonline.cn.conf

@@ -0,0 +1,24 @@
+server {
+    listen 80;
+    server_name wechatclient3.pacsonline.cn;
+    access_log  /data/logs/nginx/wechat/c3access.log;
+    error_log   /data/logs/nginx/wechat/c3error.log;
+    #ssl on;
+    index index.html index.htm;
+    root /data/www/wechat_deprecated;
+    #root /data/www/client_test;  
+    #rewrite ^(.*)$ https://${server_name}$1 permanent; 
+}
+
+server {
+  listen       1443;
+  server_name  wechatclient3.pacsonline.cn;
+  access_log  /data/logs/nginx/wechat/c3access.log;
+  error_log   /data/logs/nginx/wechat/c3error.log;
+  index index.html index.htm;
+  root /data/www/wechat_deprecated;
+}  
+
+
+
+

+ 50 - 0
https.d/ris3.wechat.server.pacsonline.cn.conf

@@ -0,0 +1,50 @@
+server {
+    listen 80;
+    server_name wechatserver3.pacsonline.cn;
+    rewrite ^(.*)$ https://${server_name}$1 permanent; 
+}
+
+
+server {
+    server_name  wechatserver3.pacsonline.cn;
+    listen       1443;
+    access_log  /data/logs/nginx/wechat/s3access.log;
+    error_log   /data/logs/nginx/wechat/s3error.log;
+    index	index.html index.php;
+    client_max_body_size    1024m;
+    root /data/gitcode/server/wechat_deprecated/public;    
+    location / {
+        if (!-e $request_filename) {
+          rewrite  ^/(.*)$  /index.php/$1  last;
+            break;
+        }
+    }
+    location  ~ \.(js|css|gif|jpg|jpeg|png|html)$ {
+        root /data/gitcode/server/wechat_deprecated/public/;
+    } 
+
+    location ~  \.php {
+        include         fastcgi_params;
+        set  $script $uri;
+        set  $path_info "";
+        if ($uri ~ "^(.+\.php)(/.+)") {
+            set $script     $1;
+            set $path_info  $2;
+        }
+	fastcgi_read_timeout 120;
+	fastcgi_pass 127.0.0.1:9000;
+    # fastcgi_pass    unix:/usr/local/php/var/run/php-fpm.sock;
+        fastcgi_index index.php;
+    #fastcgi_index   index.php?IF_REWRITE=1;
+        fastcgi_param   PATH_INFO       $path_info;
+        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
+        set $real_script_name $fastcgi_script_name;
+	    if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
+                 set $real_script_name $1;
+                 set $path_info $2;
+         }
+         fastcgi_param SCRIPT_NAME $real_script_name;
+    #fastcgi_param   SCRIPT_NAME     $script;
+    #include         fastcgi_params;
+      }
+}