zskk-manage.conf 985 B

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