• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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