Passing port number at run time


#1

Hi all,

I would like to able to pass the port number (and a couple other
things) in the http section to nginx at run time. I know the -g
switch disallows block parameters, I’ve played around a bit with
patching the code to allow it but without satisfactory results. It
appears that the parameters passed from the command are handled as a
second http block.

Before continuing down this road, does anyone have any advice about
how I might accomplish this?

Thanks,

Brian