宝塔的安装及建站请自行百度
1、准备
- 建站、建数据库
- 下载chevereto
2、安装
1.配置伪静态
#Chevereto: Disable access to sensitive files
location ~* /chevereto/(app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
#Chevereto: CORS headers
location ~* /chevereto/.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js) {
add_header Access-Control-Allow-Origin "*";
}
#Chevereto: Upload path for image content only and set 404 replacement
location ^~ /chevereto/images/ {
location ~* (jpe?g|png|gif) {
log_not_found off;
error_page 404 /chevereto/content/images/system/default/404.gif;
}
return 403;
}
#Chevereto: Pretty URLs
location /chevereto/ {
index index.php;
try_files $uri $uri/ /chevereto/index.php?$query_string;
}
2.安装
打开浏览器,输入地址,即可看到安装界面,按提示操作即可