NGINX – dynamic proxy_cache_path directory

Hex asked:

Has anyone ever successfully configured separate cache folders for different sites?

My answer:


As stated in the documentation, proxy_cache_path is valid only in the http context, and thus applies to the entire web server. You cannot vary it by virtual host or by any other criterion.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.