Read configuration at runtime
Chris Savery
chrissavery at gmail.com
Tue Aug 26 21:56:58 MSD 2008
What's going to change the config file and how often? If it's being
updated by some other process or script then perhaps it's easier to just
have that script send a signal to Nginx. Only case where this seems
like it wouldn't be workable is if you are updating these configs
continuously and don't want Nginx reloading it's config every second or
so. But I mean, if you're thinking that a config will change a few times
a day or week then a scripted signal on change would give you the
results you need.
Chris :)
Jarod Belle wrote:
> Igor Clark <igor at ...> writes:
>
>
>> Hi Jarod,
>> If you mean in the way Apache reads .htaccess files, then as far as I
>>
> understand, there isn't really any support for this in nginx; it reads its
> config at startup, and as Andre says, you need to tell it to reload the config
> using a signal.
>
>> Cheers,
>> Igor
>>
>>
>> On 26 Aug 2008, at 15:32, Andre Arnold wrote:
>> Hi,kill -HUP `pidof nginx`http://wiki.codemongers.com/
>>
> NginxCommandLine#utnbotfBest regards 2008/8/26 Jarod Belle <jarodbelle-
> Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> 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. :)
>
>>
>>
>>
>>
>>
>> --
>> Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355 •
>>
> www.pokelondon.com
>
>>
>>
>>
>>
>>
>
> Yes, I mean it.
>
> So sadly, but I really need to implement this function for some reason.
>
> Is it possible that just do some hacking job on http moudle?
>
> I have already read a part of nginx's source code, but still can not figure it
> out.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080827/266097f5/attachment.html>
More information about the nginx
mailing list