<div dir="ltr"><div style>Hello:</div><div style><br></div><div style>I found that some nginx config option doesn't take effect after modification with reload, the following is a simple test case:</div><div><br></div><div>
nginx version: nginx/1.2.7<br></div>nginx.conf:<div>============================</div><div><div><font face="courier new, monospace">worker_processes 1;</font></div><div><font face="courier new, monospace">error_log logs/error.log info;</font></div>
<div><font face="courier new, monospace"> </font></div><div><font face="courier new, monospace">events {</font></div><div><font face="courier new, monospace"> worker_connections 1024;</font></div><div><font face="courier new, monospace">}</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">http {</font></div><div><font face="courier new, monospace"> limit_req_zone $arg_a zone=testzone:64m rate=1r/s;</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"> server {</font></div><div><font face="courier new, monospace"> listen 80;</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace"> location / {</font></div><div><font face="courier new, monospace"> limit_req zone=testzone burst=2;</font></div><div><font face="courier new, monospace"> alias /;</font></div>
<div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace">}</font></div></div><div>============================<br></div>
<div><br></div><div style>I change <span style="font-family:'courier new',monospace">$arg_a </span>to <span style="font-family:'courier new',monospace">$arg_b</span> in the line '<span style="font-family:'courier new',monospace">limit_req_zone $arg_a zone=testzone:64m rate=1r/s;' </span>then reload nginx, but the change doesn't take effect, unless I stop nginx manually and start it again.</div>
<div style><br></div><div style>Is this an expected behavior ? or are there any other nginx config options that not compatible with reload operation?</div><div style><br></div><div style>Thanks!</div><div style><br></div>
</div>