S
S
Sergey Abramov2019-03-15 06:07:09
ubuntu
Sergey Abramov, 2019-03-15 06:07:09

How to solve such a problem with proxying?

There is a server, let's say SERVER1. It runs a service. Receives requests and responds. There was a need to transfer the service to another server [SERVER2] WITHOUT interruption in work until the DNS is updated.
There is such an idea. Raise a proxy on SERVER1, which would transfer all requests to SERVER2 and return responses to the user. When DNS is updated - SERVER1 can be bang.
The question is: how to do it? What proxy software to use. Preferably as easy as possible.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Abramov, 2019-03-15
@gnusy

Understood. Thanks for the tip. For those who may need this, here is the solution: nginx.conf

worker_processes  1;

events {
    worker_connections  1024;
}

stream  {
    server {
        listen 127.0.0.1:PORT;
        proxy_pass SERVER2:PORT;
    }
}

E
evgensoft, 2019-03-15
@evgensoft

nginx config - 

        location / {
            proxy_pass http://SERVER2;
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question