location /wap/ {
try_files $uri /wap/index.html;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
try_files $uri $uri/ /?$args;
}
小编的uniapp配置的路径是在运行目录下的wap目录下
做好记录以备以后使用