如果虚拟主机已经设置了typecho伪静态,只需要去/usr/local/nginx/conf/vhost/你的域名.conf找到include enable-php.conf,替换为include enable-php-pathinfo.conf,重启nginx即可解决。