Re: Forwarding to upstream server at port specified in url query paramter

2013-03-06 Thread dakun
Thanks! The Resolver did the trick. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236969,237020#msg-237020 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Forwarding to upstream server at port specified in url query paramter

2013-03-05 Thread dakun
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 e

Forwarding to upstream server at port specified in url query paramter

2013-03-05 Thread dakun
path, e.g. http://foobar.com/p/1234/. I have no control of that. I am using nginx 1.3.13 with websocket support. Thanks in advance for any help. Dakun Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236969,236969#msg-236969 ___ nginx mai