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;

            }

  • 相关阅读:
    基于C/S模式的程序更新下载
    拓展方法
    主从级GridView
    using 的用法
    五大数据类型
    redis的主从复制原理及步骤
    redis的发布订阅
    redis的持久化
    redis的事务
    配置文件详解
  • 原文地址:https://www.cnblogs.com/already/p/5155280.html
Copyright © 2011-2022 走看看