<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">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.<br>
Chris :)<br>
</font><br>
Jarod Belle wrote:
<blockquote cite="mid:loom.20080826T150637-58@post.gmane.org"
 type="cite">
  <pre wrap="">Igor Clark <a class="moz-txt-link-rfc2396E" href="mailto:igor@...">&lt;igor@...&gt;</a> writes:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Jarod,
If you mean in the way Apache reads .htaccess files, then as far as I 
    </pre>
  </blockquote>
  <pre wrap=""><!---->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.
  </pre>
  <blockquote type="cite">
    <pre wrap="">Cheers,
Igor


On 26 Aug 2008, at 15:32, Andre Arnold wrote:
Hi,kill -HUP `pidof nginx`<a class="moz-txt-link-freetext" href="http://wiki.codemongers.com/">http://wiki.codemongers.com/</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->NginxCommandLine#utnbotfBest regards 2008/8/26 Jarod Belle &lt;jarodbelle-
<a class="moz-txt-link-abbreviated" href="mailto:Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>&gt; Almir Karic &lt;almir &lt;at&gt; ...&gt; writes: &gt; 
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Tue, Aug 26, 2008 at 12:58:14PM +0000, Jarod Belle wrote: &gt; &gt; I want to 
    </pre>
  </blockquote>
  <pre wrap=""><!---->make nginx to get different configurations dynamically at runtime. &gt; &gt; what is 
wrong with nginx -c /path/to/configuration/file.conf ? &gt;
  </pre>
  <blockquote type="cite">
    <pre wrap="">Excuse me, What I wanted to know is when nginx have been already running, how 
    </pre>
  </blockquote>
  <pre wrap=""><!---->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. :)
  </pre>
  <blockquote type="cite">
    <pre wrap="">



 

--
Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355 • 
    </pre>
  </blockquote>
  <pre wrap=""><!----><a class="moz-txt-link-abbreviated" href="http://www.pokelondon.com">www.pokelondon.com</a>
  </pre>
  <blockquote type="cite">
    <pre wrap="">




    </pre>
  </blockquote>
  <pre wrap=""><!---->
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.




  </pre>
</blockquote>
</body>
</html>