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

Maxim Dounin mdounin at
Tue Sep 29 17:46:04 MSD 2009


On Tue, Sep 29, 2009 at 04:05:23PM +0300, Gena Makhomed wrote:

> On Tuesday, September 29, 2009 at 13:32:10, Maxim Dounin wrote:
> MD> Globs can be used *only* for completely independent files
> MD> (e.g. containing definitions of different server{} blocks).
> may be config test should generate warning "Undefined behavior"
> if wildcard includes not containing completely independent files ?

You never know if included chunks are dependent or not.  E.g. the 
following lines are completely independent given that $var defined 
somewhere before (assume each line in it's own include):

   rewrite  ^/blah$  /$var/blah;
   rewrite  ^/oops$  /$var/oops;

while these aren't:

   rewrite  ^/blah$  /$var/blah;
   set $var "something"
   rewrite  ^/oops$  /$var/oops;

Not even talking about more complex cases.

Maxim Dounin

More information about the nginx mailing list