• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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