zskk-wechat-server.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. server {
  2. listen 19614;
  3. server_name _;
  4. charset utf-8;
  5. access_log /data/logs/nginx/wechat-server.access.log main;
  6. error_log /data/logs/nginx/wechat-server.error.log;
  7. index index.html index.htm;
  8. root /data/wechat/public;
  9. client_max_body_size 1024m;
  10. proxy_ignore_client_abort on;
  11. location ~ .(js|css|gif|jpg|jpeg|png|html)$ {
  12. root /data/wechat/public;
  13. }
  14. location ^~ /uploads/ {
  15. root /data/wechat/public;
  16. }
  17. location / {
  18. index index.php index.html index.htm;
  19. if (!-e $request_filename) {
  20. rewrite ^(.*)$ /index.php?s=/$1 last;
  21. break;
  22. }
  23. if ( -f $request_filename) {
  24. break;
  25. }
  26. }
  27. location ~ .php($|/) {
  28. # fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_pass php-fpm;
  30. fastcgi_index index.php;
  31. fastcgi_split_path_info ^(.+.php)(.*)$;
  32. fastcgi_param PATH_INFO $fastcgi_path_info;
  33. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  34. include fastcgi_params;
  35. }
  36. }