root /home/wwwroot/tpzy62/;#你的根路径
location / { root /home/wwwroot/tpzy62/;#你的根路径 index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; } }