宝塔搭建Chevereto图床

1. 下载压缩包

你可以点这里去github下载,也就4MB,一会就下载完了。

2. 在宝塔新建一个网站这个就不用多说了吧。

然后创建一个数据库。记住数据库名、用户名、密码等

3. 把下载好的压缩包上传到你新建的网站的目录里面然后解压。

4. 注意这里需要更改一个东西

首先找到网站的设置

找到配置文件
在最后一个大括号前加入下面的代码

# Disable access to .ht* files
location ~ /.ht {
    deny all;
}
 
# Disable access to sensitive files in app path
location ~ /(app|content|lib)/.*.(po|php|lock|sql)$ {
   deny all;
}
 
# Disable log on not found images + image replacement
location ~* (jpe?g|png|gif) {
    log_not_found off;
    error_page 404 /contenthttps://qn.cndrew.cn/system/default/404.gif;
}
 
# Enable CORS header (needed for CDN)
location ~* .(ttf|ttc|otf|eot|woff|woff2|css|js)$ {
    add_header Access-Control-Allow-Origin "*";
}
 
# Force serve upload path as static content (match your upload folder if needed)
location https://qn.cndrew.cn {}
 
# Route dynamic request to index.php
location / {
    try_files $uri $uri/ /index.php?$query_string;
}

后台地址:域名/dashboard/settings

原文地址:https://www.cnblogs.com/ljfchtcc/p/13213839.html