Read configuration at runtime

Almir Karic almir at kiberpipa.org
Tue Aug 26 18:41:48 MSD 2008


On Tue, Aug 26, 2008 at 02:23:57PM +0000, Jarod Belle wrote:
> Almir Karic <almir at ...> writes:
> 
> > 
> > On Tue, Aug 26, 2008 at 12:58:14PM +0000, Jarod Belle wrote:
> > > I want to make nginx to get different configurations dynamically at runtime.
> > 
> > what is wrong with nginx -c /path/to/configuration/file.conf ?
> > 
> 
> 
> Excuse me, What I wanted to know is when nginx have been already running, how 
> to read any other configurations(such as different user's configuration) in the 
> runtime.
> 
> I think this need some ngx_http_module hacking, but I need some guide, since 
> I'm not familiar enough with nginx's internal architecture.
> 
> 
> Thank you for your reply. :)

nginx supports HUP, once you modify it's config file just do something ala:

pkill -1 nginx

and it should re-read the config file.

-- 
vi vi vi -- the number fo the beast





More information about the nginx mailing list