location / {
root /home/tx/workspace/tx-do/public;
index index.html index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php last;
}
}
转载于:https://www.cnblogs.com/lfq618/archive/2012/07/20/2601429.html