kunalvjti Wrote:
-------------------------------------------------------
> Sorry am new to Lua but can you plz explain how this upstream status &
> control will help with this issue. How can i query for the upstream ip
Use the ngxlua --add option (https://github.com/chaoslawful/lua-nginx-module) or openresty, then add https://github.com/agentzh/lua-upstream-nginx-module
replace the .c file from my archive and compile.
In the same archive you will find an example full working nginx config file and 2 lua files giving you upstream access via a GUI or via Curl.
> after every certain time interval and reconfigure nginx if there's a
> change detected ?
This can be done in Lua or you can let an external monitoring tool trigger a script firing a curl command.
> This should be OS & implementation independent. How to make this work
> everywhere ?
What I've made so far works for any OS.
---
nginx for Windows http://nginx-win.ecsds.eu/