set port range for nginx

Fufeng Yao at
Fri Feb 8 03:20:35 UTC 2013

Hi, all
I've got an nginx server in an internal network, and the server will
forward request to outer net using proxy_pass,
it seems like:
proxy_pass http://[public ip]:[port]
Unfortunately, the firewall block most of the port, so the proxy_pass
I have two questions:
How the proxy_pass use port to forward the request? pick a random port?
Would that be possible to set a port range (10000~20000 e.g) for proxy_pass
to use?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list