Hi,
I have an interesting situation that I'm having some issues with. Basically I have a path like /old which is using a content_by_lua_file script to take in the uri and do a lookup against some JSON in an API. In most instances that API returns some data and I either send a 301 to /new with the value from the API or return a 404.
In some instances I need to actually proxy pass back to /old which will hit another upstream sever which is expecting a uri like /old/something_to_look_for. I've tried with multiple location blocks but can't seem to get it working. I'm sure I'm just thinking about the problem in the wrong way and am wondering how to tackle this. I know this is slightly vague but I don't have code to support this, since nothing I've tried works.
Thanks!