• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved nginx configuration

dyrer

Basic Pleskian
Hello,
how can I add this code to my nginx conf


if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){
add_header Access-Control-Allow-Origin *;
}
 
In Additional nginx directives try to use this rewritten code:

location ~ \.(woff|woff2|ttf|eot)$ {
add_header "Access-Control-Allow-Origin" "*";
expires 1M;
access_log off;
add_header Cache-Control "public";
}

I hope it will help.
 
Back
Top