Answer the question
In order to leave comments, you need to log in
How to make Nginx redirect both ways with multiple hosts?
stream {
upstream asdserv {
server 10.20.10.10:1521;
}
upstream qweserv {
server 10.10.10.11:1433;
}
server {
listen 1433 so_keepalive=on;
listen 1521 so_keepalive=on;
proxy_pass asdserv;
}
server {
listen 10.20.10.11:1433;
proxy_pass qweserv;
}
}
Answer the question
In order to leave comments, you need to log in
you can go in any direction and back,
and if there is a hitch in something, then draw a diagram, and it will become clearer to us here what is needed and what is wrong
stream {
upstream asdserv {
server 10.20.10.10:1521;
}
server {
listen 1433 so_keepalive=on;
listen 1521 so_keepalive=on;
proxy_pass asdserv;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question