shared memory zone "media" conflicts with already declared size 0

Igor Sysoev is at rambler-co.ru
Tue Sep 29 13:50:51 MSD 2009


On Tue, Sep 29, 2009 at 11:41:15AM +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
> I don't know, never the less the desired order can be achieved by adding 
> digits in front of the file name, 001-cache.conf, 002-ssl.conf fixed my 
> issue.

Probably, names were reordered in the directory while renaming.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list