问题解决了,原来是浏览器缓存的问题,清除一下缓存就可以了!!!泪奔啊。。。
可以参考这里:http://serverfault.com/questions/315224/why-are-my-php-files-downloading-instead-of-processing-with-nginx?rq=1
多谢各位的回答了!
在try_files最后添加index.php试试看
try_files $uri $uri/ /index.html; 这里是不是少了 index.php呢?