Why cannot the same path for cache used several times?

B.R. reallfqq-nginx at yahoo.fr
Wed Aug 6 01:08:00 UTC 2014


What is wrong in having configured:

proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=one:10m;
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=two:10m;

each stanza loaded from a different .conf file (from the conf.d, included
by nginx.conf)?

It ends up with:
[emerg] the same path name "/data/nginx/cache" used in
/etc/nginx/conf.d/foo.conf:1 and in /etc/nginx/conf.d/bar.conf:1

Should not the fact of having different keys_zone be enough?
---
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140806/b7f76331/attachment.html>


More information about the nginx mailing list