• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Hummingbird + nginx + plesk

hot

New Pleskian
Hello to everyone,
i am having difficulty adding these lines from hummingbird [wordpress plugin] to enable browsercache to nginx.

location ~* \.(txt|xml|js)$ {
expires 1y;
}

location ~* \.(css)$ {
expires 1y;
}

location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$ {
expires 1y;
}

location ~* \.(jpg|jpeg|png|gif|swf|webp)$ {
expires 1y;
}

The instuctions from the plugin was to copy the generated code and paste it inside the server block.
I tried all the .conf files that are releated to nginx based on obsidian guide with no result ( i have reloaded the nginx after every change).
In /etc/nginx/nginx.conf there isn't any server block also.
What can i do to solve this ?
 
Back
Top