Example /etc/nginx/nginx.conf
using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.
Will need to create a directory to hold cache files, for the example given here that would be:
$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgi
Ownership of the cache storage directory should be the same as the running Nginx user
.
I have followed these indications. However, I have this blocks
And then the
location / {
fastcgi_cache_bypass $fastcgi_skipcache;
fastcgi_no_cache $fastcgi_skipcache;
}
But as long as the static images/resources block is defined, my exception for /promocion/ takes no place at all :(
What other consideration do I have to take into account in this case where Apache serves behind Nginx ?