K
K
Kirill Kazakov2015-06-16 13:45:28
iptables
Kirill Kazakov, 2015-06-16 13:45:28

How to configure routing relative to guest OS with redirection by domain_name on one port?

There is a Linux server (Hetzner's Proxmox) -> Openvz containers .
Is it possible to configure the bridge in such a way that traffic is forwarded to the desired container by domain.name:80(443) ?
For example, there is:

  • 3 ip white ip
  • host machine
  • 3 containers

1st ip for Host system
2nd ip for Container #1
3rd ip for Container #2-3
Container #1 has an external ip
Container #2 192.168.10.20 the site kinigovno.com (80;443) is spinning via brdige with external ip #3
Container #3 192.168.10.30 the site kinonashe.com is spinning (80;443) goes through brdige with external ip #3
So, is it possible to configure routing so that traffic from the site
kinigovno.com goes to container #2
kinonashe. com went to container #3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2015-06-16
@mausspb

Make another container or raise nginx on the host system and make a set of virtual hosts with the necessary domain_names, in each of which already make a proxy_pass to the container you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question