这段伪静态是哪里错了?

我从aapanel迁移过来,原来是用的apache,然后程序也提供了nginx的伪静态(我在1panel用的openresty)
但是设置完伪静态后,保存没报错,程序无法正常加载。
之前搜论坛,可能是伪静态指定的目录重复了,但是不确定,大家能帮忙看看么

location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ /(fns|pages|include|layouts) {
deny all;
return 404;
}
location ~* /(assets)/(.+).(jpg|jpeg|png|gif|svg|flv|mp3|jfif|wav|mp4|ogg|pdf|webm|bmp|webp|json|woff|woff2|ttf|eot|js|css|map|mov)$ {
allow all;
}
location ~ /(fns|pages|include|layouts|assets)/(.+).[^.]+$ {
deny all;
}

看看 nginx 和后端程序日志