rewrite ^/(.*)$ /index.php/$1 last;
这句话的意思,是把slash(/)之后的所有内容在前面加上一个/index.php,这里的$1指代前面括号的正则表达式(.*)所匹配的内容,last表示rewrite结束。