B
B
burnos2020-05-14 09:36:52
Web servers
burnos, 2020-05-14 09:36:52

How to internally redirect an http request to another web server?

There are 2 web servers in the local network. Installed ubuntu. centos, apache2. 1 Nat redirects requests from the Internet on port 80 to 1 server, and 443 to 2. But now there is another nginx web server, and the site is also configured on port 80 on it. How can I set up a redirect from 1 apache2 server to 3 nginx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2020-05-14
@dronmaxman

Raise a proxy (nginx) on one of the servers, direct all requests to it (80 443) and let it resolve based on the domain to which server to redirect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question