Why cannot the same path for cache used several times?

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.

B.R. Wrote:

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;

keys_zone is memory, the other a ‘file’ path, I could imagine a
‘cachehash’
used could overwrite the other.

Posted at Nginx Forum: