# Image not found replacement
location ~* (jpe?g|png|gif) {
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 / {
try_files $uri $uri/ /index.php?$query_string;
}
Last modification:April 12, 2022
如果觉得我的文章对你有用,请随意赞赏