首页 > Web开发 > 详细

thinkphp 3.2 linux系统配置

时间:2016-07-07 13:00:21      阅读:140      评论:0      收藏:0      [点我收藏+]

详解:http://document.thinkphp.cn/manual_3_2.html#url_rewrite

 

阿里云系统配置thingkphp 3.2

1.该配置

ftp位置:/etc/nginx/conf.d/default.conf

增加代码

(更目录下安装)

 location / { // …..省略部分代码
   if (!-e $request_filename) {
   rewrite  ^(.*)$  /index.php?s=$1  last;
   break;
    }
 }

(二级目录安装)

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

 

thinkphp 3.2 linux系统配置

原文:http://www.cnblogs.com/wesky/p/5649623.html

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