Answer the question
In order to leave comments, you need to log in
nginx. How to proxy requests from one url to another using different ports (SOLVED)?
Hello!
There is a server on which to deploy Nginx (IP1).
I would like to be redirected to another url (IP2) with a different port when accessing this resource on port 80.
I see solutions with proxy_pass, but the path is indicated there without specifying the port.
My config:
server {
listen 80;
server_name IP1;
location / {
proxy_pass http://IP2:1111;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question