I want to proxy pass all requests coming from a series of ports into single port. I am able to proxy pass a single port to another like so:
server {
listen 3333;
server_name test.in *.test.in;
location / {
proxy_pass http://10.1.1.2:5479/;
include /etc/nginx/proxy_params;
}
}
So when I try test.in:3333 it redirects to 10.1.1.2:5479.
In the same way I need to proxy pass these:
test.in 4440 to 10.1.1.2:5479
test.in 4441 to 10.1.1.2:5479
test.in 4442 to 10.1.1.2:5479
How can I do this?