chevereto 是目前看起来卖相最好的图床之一了。功能也非常强大。
对比了下免费版和收费版的功能 , 发现最主要的是收费版多了硬盘扩展,社交分享功能和技术支持。硬盘扩展值得是你可以通过 sftp 等方式把上传的文件储存在其他服务器上。
https://demo.chevereto.com/explore
因此,大部分情况,这个免费版已经足够使用啦。而且 chevereto 的安装也非常简单,并且支持中文。
404问题原因
伪静态没有配置正确,Chevereto 默认提供基于 Apache 环境的伪静态规则,如果服务器是 Nginx 则需要设置伪静态规则
修改 nginx 配置
在 server 下加入以下配置:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
官方推荐配置
# 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 /content/images/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
location ~ /images {}
# Route dynamic request to index.php
location / {
try_files $uri $uri/ /index.php?$query_string;
}