Question regarding syntax of nginx configs
mdounin at mdounin.ru
Mon Nov 16 14:24:58 UTC 2015
On Sun, Nov 15, 2015 at 02:14:25PM +0530, Awal Garg wrote:
> I am writing a configuration parser for nginx (in Python). It appears
> as if the following constructs are dismissed as invalid by
> ...<STRING_TOKEN> <BLOCK> <STRING_TOKEN>;
> ...<STRING_TOKEN> <BLOCK>;
> (STRING_TOKEN is any token like `server` or `listen`. I don't really
> know what to call them here :/)
> IOW, it seems that for every directive, a leaf representing a block
> can only come at the end of a directive and must not be followed by a
> Am I correct in inferring this?
> Does this mean there isn't any
> directive possible which takes more than one block at once?
More information about the nginx-devel