• 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

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