迁移图床chevereto时 404 与 502 问题的解决

迁移图床chevereto时 404 与 502 问题的解决

literature
2023-08-26 / 0 评论 / 244 阅读 / 正在检测是否收录...

404

# Chevereto NGINX generated rules for https://yourdomain/

# Context limits
client_max_body_size 20M;

# Disable access to sensitive files
location ~* /(app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}

# Image not found replacement
location ~ \.(jpe?g|png|gif|webp)$ {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}

# CORS header (avoids font rendering issues)
location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}

# Pretty URLs
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}

# END Chevereto NGINX rules

502

修改前:

include enable-php-72.conf;

修改后:

include enable-php-73.conf;
0

评论

博主关闭了当前页面的评论