| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- server {
- listen 19614;
- server_name _;
- charset utf-8;
- access_log /data/logs/nginx/wechat-server.access.log main;
- error_log /data/logs/nginx/wechat-server.error.log;
- index index.html index.htm;
- root /data/wechat/public;
-
- client_max_body_size 1024m;
- proxy_ignore_client_abort on;
-
-
- location ~ .(js|css|gif|jpg|jpeg|png|html)$ {
- root /data/wechat/public;
- }
-
- location ^~ /uploads/ {
- root /data/wechat/public;
- }
-
- location / {
- index index.php index.html index.htm;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?s=/$1 last;
- break;
- }
- if ( -f $request_filename) {
- break;
- }
- }
-
-
- location ~ .php($|/) {
- # fastcgi_pass 127.0.0.1:9000;
- fastcgi_pass php-fpm;
- fastcgi_index index.php;
- fastcgi_split_path_info ^(.+.php)(.*)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
- include fastcgi_params;
- }
- }
|