Welcome! Log In Create A New Profile

Advanced

Why cannot the same path for cache used several times?

B.R.
August 05, 2014 09:10PM
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.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Why cannot the same path for cache used several times?

B.R. August 05, 2014 09:10PM

Re: Why cannot the same path for cache used several times?

itpp2012 August 06, 2014 02:47AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready