zskk-manage.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. server {
  2. listen 19620;
  3. server_name _;
  4. charset utf-8;
  5. access_log /var/log/nginx/manage.access.log;
  6. error_log /var/log/nginx/manage.error.log;
  7. index index.html index.htm;
  8. #root /data/code/manage_dm/zskk_new_manage/public;
  9. root /var/www/html/zskk_new_manage/public;
  10. location / {
  11. index index.php index.html index.htm;
  12. if (!-e $request_filename) {
  13. rewrite ^(.*)$ /index.php?s=/$1 last;
  14. break;
  15. }
  16. if ( -f $request_filename) {
  17. break;
  18. }
  19. }
  20. location ~ .php($|/) {
  21. # fastcgi_pass 127.0.0.1:9000;
  22. fastcgi_connect_timeout 300s;
  23. fastcgi_send_timeout 300s;
  24. fastcgi_read_timeout 300s;
  25. fastcgi_pass php-fpm;
  26. fastcgi_index index.php;
  27. fastcgi_split_path_info ^(.+.php)(.*)$;
  28. fastcgi_param PATH_INFO $fastcgi_path_info;
  29. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  30. include fastcgi_params;
  31. }
  32. }