shared memory zone "media" conflicts with already declared size 0
Maxim Dounin
mdounin at mdounin.ru
Tue Sep 29 15:15:21 MSD 2009
Hello!
On Tue, Sep 29, 2009 at 01:11:17PM +0400, Igor Sysoev wrote:
> On Tue, Sep 29, 2009 at 10:57:02AM +0200, Tomasz Pajor wrote:
>
> > >
> > >> what seems to be the problem?
> > >>
> > >> [emerg]: the size 52428800 of shared memory zone "media" conflicts with
> > >> already declared size 0 in /etc/nginx/conf.d/cache.conf:5
> > >> configuration file /etc/nginx/nginx.conf test failed
> > >>
> > >
> > > This may be caused if "proxy_cache media" is included before proxy_cache_path.
> > >
> > this is true,
> > in /etc/nginx/conf.d i have two files, cache.conf and ssl.conf, and what
> > it seems the ssl.conf is loaded first, shouldn't the files be loaded in
> > alphabetical order?
>
> Currently, files are unsorted.
> Probably, it should be changed to alphabetical order, but I'm not sure.
BTW, have you seen any configurations that may seriously suffer
from changing this to alpabetical order?
As far as I understand performance drop will be noticeable
somewhere near 10k+ includes, while serious problems are unlikely
to happen before something like 100k+...
Maxim Dounin
More information about the nginx
mailing list