Forwarding to upstream server at port specified in url query paramter

Jonathan Matthews contact at jpluscplusm.com
Wed Mar 6 01:19:27 UTC 2013


On 6 March 2013 00:51, dakun <nginx-forum at nginx.us> wrote:
> 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?

Is http://wiki.nginx.org/HttpCoreModule#.24arg_PARAMETER of any use?

Jonathan
-- 
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html



More information about the nginx mailing list