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;
}
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/2259.html