These are additional Nginx directives to be used for plesk hosted WordPress sites using the cache plugin WP-Rocket. It enables Nginx to serve directly previously cached files without calling WordPress or any PHP. It also adds headers to cache CSS, JS and medias in order to leverage browser's cache by reducing request to your web server.
This config is based on Rocket-Nginx by SatelliteWP.
To add domain-specific settings for Nginx web servers:
- Log into Plesk
- Go to Home > Subscriptions > example.com > Websites & Domains > Apache & nginx Settings
- Add the directives from
rocket-nginx-directives.conf
in the Additional nginx directives field
Released under the MIT License. See the license file for details.