Read configuration at runtime
jarodbelle at gmail.com
Tue Aug 26 19:05:12 MSD 2008
Andre Arnold <andre.arnold at ...> writes:
> Hi,kill -HUP `pidof nginx`http://wiki.codemongers.com/
> 2008/8/26 Jarod Belle <jarodbelle at gmail.com>
> 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
> > 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
> 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. :)
Oh, my bad english, It seems I need to explain my question more carefully.
In fact, I mean:
There are some sub-conf-file asid from a main-conf-file, when nginx start, it
will load the main-conf-file at first.
When nginx is running, if it gets any requests and matchs a sub-conf-file by
some rules, the main process will load this sub-conf-file to application
Anyway, thank you all. :)
More information about the nginx