https://www.google.nl/#q=nginx+lua+read+xml
http://viremo.eludi.net/LuaXML/
And then do something in a location block like:
set_by_lua $notused '
ngx.var.myroot = "default value";
if myuri == "www" then ngx.var.myroot = "someothervalue"; end;
';
But then of-course with a variable to be used in proxy_pass.
http://viremo.eludi.net/LuaXML/
And then do something in a location block like:
set_by_lua $notused '
ngx.var.myroot = "default value";
if myuri == "www" then ngx.var.myroot = "someothervalue"; end;
';
But then of-course with a variable to be used in proxy_pass.