Hello,
Is there a simple way to redirect a request to another domain?
Say nginx is running on http://bar.com
uri request is /foo/[http://new.url.org]
I want the user to be directed to http://new.url.org
The rewrite command only seems to ever handle the uri portion correctly, so no matter what I try it redirects to http://bar.com/foo/http://new.url.org so basically it is doing nothing.
I'm trying to muck around with rewrite_by_lua but not having much better success unless I hard code the url into ngx.redirect()
Any ideas? I bet its something simple I've overlooked.