php框架PATH_INFO模式配置

PHP开发 | 2013-01-26 03:49:34 | 阅读 1714 次 | 评论(0)
    if (!-e $request_filename) {
        rewrite ^.*$ /index.php last;
    }   
    location ~ \.php(/|$) {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        include        fastcgi_params;
    }
文章评论,共0条
游客请输入验证码
浏览1921616次
文章归档
最新评论
  • Miss_Zou:不都是复制粘贴的吗
  • Miss_Zou:目测是大佬
  • 神犇dengyuhy:语文很好