ThinkPHP3.2rewrite模式 无法区别出控制器跟方法

浏览:423 发布日期:2017/03/27 分类:求助交流
ThinkPHP3.2 使用rewrite模式 在lnmp环境下 无法把控制器跟方法区别开。

nginx设置:

server {
listen 80;
server_name _;
root /www/wwwroot;
location / {
index index.php index.html index.htm;
if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php?s=$1 last;
}
}
location ~ [^/]\.php(/|$)
{
# limit_conn perip 4;
# limit_req zone=reqip burst=4 nodelay;
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
# include pathinfo.conf;
}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>