I
I
Isagadji2015-10-20 13:29:30
linux
Isagadji, 2015-10-20 13:29:30

How to make a website accessible from all ethernet interfaces in vestacp?

There is a server with ubuntu 14.04 installed and vestacp site control panel. Multiple sites set up.
The server has two ethernet interfaces. One looks into the world, the other into the local network. I need the domain to be accessible from both sides.
The vestacp settings for the domain specifically indicate the IP from which it is available.
6c33c87aa5e94c4d8977a982d79842ce.PNG
How to make it available from the local network (when dialing an internal IP) and outside (when dialing an external IP)? i.e. on both sides.
Also on the server there are a couple of sites available by domain from an external IP address.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2015-10-21
@isagadji

in the general case - it’s not
the same DNS, the domain has only one A record
, yes, they do round robin under heavy loads, but you can’t do this in the panel, do the following at the wrong level of the task
:
1) drank nginx to listen to two interfaces
2) in hosts prescribe IP locales - domain, then from local you will connect via the second interface

P
plus plus, 2017-04-07
@plus887

And no steering or IP merging is planned?
I'll ask along the way.
VestaCP has no settings for proxying internal sites from other local servers? in the directory found a file proxy_ip.tpl. But I don't see any settings in the panel.
If anything, here is the template
https://c.vestacp.com/0.9.8/ubuntu/templates/web/nginx/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question