tp-shop Nginx配置for mamp

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


            location ~ .php($|/) {

                set $script $uri;
                set $path_info "";

                if ($uri ~ "^(.+.php)(/.+)") {
                    set $script $1;
                    set $path_info $2;
                }

       #         fastcgi_param SCRIPT_FILENAME $document_root$script;
      #          fastcgi_param SCRIPT_NAME $script;
     #           fastcgi_param PATH_INFO $path_info;

    #            try_files $uri =404;
   #             fastcgi_pass  unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI_php5.6.25.sock;
  #              fastcgi_index index.php;
 #include          /Applications/MAMP/conf/nginx/fastcgi_params;


                #include fastcgi.conf;
#               fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;


            }

 

版权声明:
作者:xiaoniba
链接:https://blog.xiaoniba.com/2016/09/16/tpshop-mamp-nginx%e9%85%8d%e7%bd%ae/
来源:小泥吧的博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>