正文
Chevereto 是目前最为强大的 PHP 图床系统,通过它可部署多用户公开或私有的图片存储服务,现在 Chevereto 出了免费的版本,小伙伴可以围观一下https://github.com/Chevereto/Chevereto-Free
Chevereto 默认提供基于 Apache 环境的伪静态规则,如果服务器是 Nginx 的话,可以使用下面的伪静态规则
![图片[1]-Nginx下Chevereto伪静态规则-开源源码](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-d9e50375-e13b-49a8-b5ae-8bb85cb78469/f9664a99-9232-4c16-9864-37760e5b446a.png)
location / {
    if (-f $request_filename/index.html){
        rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
        rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
        rewrite (.*) /index.php;
    }
    try_files $uri $uri/ /api.php;
}
location /admin {
    try_files $uri /admin/index.php?$args;
}
内容看完了
                    © 版权声明








请登录后发表评论
注册