nginx 环境不支持thinkPHP

在linux+Nginx+mysql+PHP 新装的服务器下,不支持重写pathinfo功能 。

需要加入这个代码 让Nginx 支持重写功能 

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

posted @ 2017-09-15 09:43  宋先生日记  阅读(202)  评论(0编辑  收藏  举报