nginx 环境不支持thinkPHP

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

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

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

原文地址:https://www.cnblogs.com/songadmin/p/7524654.html