location / {
try_files $uri $uri/ /index.php?$query_string; #这项配置解决访问根目录以外路径报404的错误
if (!-e $request_filename) { #这里便是隐藏入口文件的配置
rewrite ^(.*)$ /skadmin.php?s=/$1 last;
break;
}
index index.html index.htm index.php;
#autoindex on;
}