location / {
index index.html index.htm index.php l.php;
autoindex on;

if (!-e $request_filename) {

###一级目录下
rewrite ^/(.*)$ /index.php/$1 last;

###域名下的二级目录
#rewrite ^/public/(.*)$ /public/index.php/$1 last;
}
}

04-11 20:48