I
I
i_want_to_know_everything2016-10-18 23:33:15
Nginx
i_want_to_know_everything, 2016-10-18 23:33:15

Do 2 ips lead to the same site?

there are 2 ip, 2 domains, 1 server named domain1.com
for one site is specified in the config

...
listen ip1:80;
root /var/www/domain1.com/html;
index index.php;
server_name domain1.com www.domain1.com;
....

for another
...
listen ip2:80;
root /var/www/domain2.com/html;
index index.php;
server_name domain2.com www.domain2.com;
....

But both ip and both domain names lead to domain1.com corresponding to the server name
. What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-10-18
@i_want_to_know_everything

Show sections with proxy_pass or php-fpm - maybe the reason is there.
So, of course, I would like to see the patients to make sure that everything resolves correctly and complete configs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question