S
S
shmelfrol2021-01-27 10:30:50
Apache HTTP Server
shmelfrol, 2021-01-27 10:30:50

HOW to set 2 ip to a webserver?

Hello. there is a web server on apache. at the enterprise 2 providers with pools of white ip are brought. we want to put 2 white ips on the web server, so that if one provider fails, users go through another. what needs to be done for this, what to register on the dns server. As they say: direct in the right direction.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Tutubalin, 2021-01-27
@Kennius

an A record with a second ip is added to the dns, and in apache

ServerAlias ​​192.168.1.1 192.168.1.2
ip ip substitute yours, well, you need to do port forwarding for the second ip to the server

V
Viktor Taran, 2021-01-27
@shambler81

<VirtualHost *:80> if you need all ips
well or like this
<VirtualHost 192.168.1.1 172.20.30.40>

S
shmelfrol, 2021-01-27
@shmelfrol

and what will happen if you turn off alternately one network card or another at the server, in order to determine which provider works better, the client remembers 1 ip from the dns server or immediately 2, or if it fails, it requests a second entry?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question