Accessing binding nginx via Lua

Maxim Dounin mdounin at mdounin.ru
Tue Oct 15 13:29:34 UTC 2013


Hello!

On Tue, Oct 15, 2013 at 07:41:45AM -0400, itpp2012 wrote:

> Would it be possible (and how) to access the bindings inside nginx via Lua?
> for an experiment I'd like to change the listening port of a running nginx
> process.

I can't really speak of Lua, but given the nginx architecture it's 
highly unlikely to be ever possible.  Listen sockets are created 
by master process and inherited by workers.  In most cases, 
workers just can't open listening sockets due to security 
restrictions.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list