I am using the example at https://openresty.org/en/dynamic-routing-based-on-redis.html and it appears to be working well except for one thing.
When I go to http://<mysite>/foo and have a mapping of "/foo" to "nginx.com" in redis then the proxy_pass is sending me to http://nginx.com/foo.
How do I remove the path ("/foo") from the target in the proxy_pass?
Otherwise works great and is exactly what I needed