Chevereto V4.0.X Nginx静态化规则

# Chevereto nginx generated rules for Chevereto.com
location ~* /(importing|app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}

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

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

location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}
# END Chevereto nginx rules

 

© 版权声明
THE END
請多多支持
点赞0
评论 抢沙发

    暂无评论内容