• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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