在vhosts.conf中找到项目配置的.conf文件 location / { if (!-e $request_filename) { rewrite ^/(.*) /index.php?s=$1 last; }