Thanks! The Resolver did the trick.by dakun - Nginx Mailing List - English
Thanks for the advice on $arg_PARAMETER. It allows me to retrieve the parameter. However I am not able to use it as a port number for proxy_pass. This shows that I can get the parameter and use it in rewrite: location /test { rewrite ^ http://www.google.com/?q=$arg_p; } This does not work. Got error "no resolver defined to resolve www.google.com" in log. location /path { proxby dakun - Nginx Mailing List - English
I am trying to use the HttpProxyModule to forward traffic to an upstream server. The incoming request will be like: http://foobar.com/path?p=1234 where p=1234 indicates the upstream port to use. For this example I would want to forward to http://upstreamserver.com:1234. How can I achieve this? I have experimented with regex and rewrites but was unsuccessful mainly because regeby dakun - Nginx Mailing List - English