<div dir="ltr">Hi<div><br></div><div>I got something like this</div><div><br></div><div><div>    error_page   404 /stderror404.html;</div><div><br></div><div>    location = /stderror400.html {</div><div>        root   /var/www/error;</div><div>        content_by_lua_file /var/www/error/stderror400.lua;</div><div><br></div><div>        internal;</div><div>        allow all;</div><div>    }</div><div><br></div></div><div><br></div><div>and the lua file has </div><div><br></div><div><div>ngx.say( "Your source ip address is: " .. ngx.var.remote_addr .. ":" .. ngx.var.remote_port .. "<br>");</div><div>ngx.say( "You requested URI: " .. ngx.var.uri .. "<br>");</div><div><br></div></div><div><br></div><div>Question</div><div><br></div><div>Seems like I have to do a restart to get the lua file reread if I have changed it ... reload doesn't seem to cut it. is there some signal i can send to reread the lua file.</div><div><br></div><div>ngx.var.uri is always /stderror404.html  how can I capture the original uri and print it here ?</div><div> </div></div>