zoukankan      html  css  js  c++  java
  • 配置nginx1.8支持thinkPHP3.2 pathinfo模式

      nginx 下conf/nginx.conf 或者自己的vhosts
    更改以前的参数

    location / {

                root   html;

                index  index.html index.htm index.php;

                try_files  $uri  /index.php$uri;

                if (!-e $request_filename) {

                       rewrite ^/子目录名/(.*)$ /子目录名/index.php?s=$1 last; #去除index.php

                       break;

                  }

            }

    location ~ .+.php($|/) {

                root           html;

                fastcgi_pass   127.0.0.1:9000;

                fastcgi_index  index.php;

                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

                fastcgi_split_path_info  ^(.+.php)(/.*)$;

                fastcgi_param  PATH_INFO $fastcgi_path_info;

                include        fastcgi_params;

            }

  • 相关阅读:
    《大道至简》读后感
    第一周学习总结-Java
    c++与java的几个不同点
    单调队列 滑动窗口模型
    计算空间
    关于dp初始化问题
    康托展开小结-
    Vm-Ubuntu下配置Qt开发环境
    C++学习013多态
    C++学习012友元
  • 原文地址:https://www.cnblogs.com/already/p/5155280.html
Copyright © 2011-2022 走看看