I am using the following config on my http block on nginx.conf:
fastcgi_cache_path /var/www/nginx_cache levels=1:2 keys_zone=NGINXCACHE:500m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
This works for all websites hosted on this nginx server. I would like to know if it is possible to have each website cache files stored under a specific folder, something like:
- /tmpfs/fastcgi_cache/website1
- /tmpfs/fastcgi_cache/website2
When I daclare multiple fastcgi_cache_path's nginx start gives me a error, even with different zones.
Best regards.