首页 > 其他 > 详细

nginx server

时间:2019-02-10 20:57:14      阅读:175      评论:0      收藏:0      [点我收藏+]
server {
  listen 80;
  client_max_body_size 2000m;
  server_name dev.za.jiaoshitech.com;
  root /Users/ismdeep/projects/jiaoshitech/zhixing/admin/public;
  index index.php index.html index.htm;

  location / {
    if (!-e $request_filename) {
      rewrite  ^(.*)$  /index.php?s=/$1  last;
    }
  }

  location ~ \.php {
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;
  }
}

 

nginx server

原文:https://www.cnblogs.com/yakoazz/p/10360153.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!