宝塔的安装及建站请自行百度

1、准备

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;
}

image.png

2.安装

打开浏览器,输入地址,即可看到安装界面,按提示操作即可

END
Last modification:September 26th, 2021 at 06:38 pm
如果觉得我的文章对你有用,请随意赞赏