How to assign domains to virtuallock proxmox?

0 like 0 dislike
There is a server virtualname on proxmox (debian) and one external IP.

Task - to make the transition from different domains via the external IP opened different new path.

For example, there are domains:,,
When entering the open one dev, while calling on - other dev.

Interested in the issues: "in General, it is possible to do on proxmox?" and "what do you decision?"

At last - at least the direction where to look, and then half of the Internet with different queries break, or what entries were found.

I would be very grateful though for any hints!

*** *** ***

PS. On the Internet found a similar question. It sounds like this:

"There is a server, it is BIND9, proxmox. Everything seems configured in the "best recipes".However, there is a need for a domain to make a subdomain ( and place it in the container (proxmox). Tell me how to configure dns, that would at, knocking on any port I could get to the container (proxmox)."

To that question someone answered like this:

"If I understand correctly the situation, the question refers not so much to DNS as a virtual machine.

Seems You have problem to access the virtual machine from the outside. The decision will depend on how Your virtual machine is configured with a network interface. Standard options - NAT or Bridge. In the case of NAT You need to configure a port translation on the server virtual machines. In the case of the bridge to deal with the allocation of IP in Your network, you can configure DHCP."

I tried to search in this direction, but not what sensible did not find...
by | 6 views

2 Answers

0 like 0 dislike
Found the solution!

It lies in the fact that all requests took one of virtualos, and from it already to distribute requests to the remaining funds Nginx.

If anyone is interested, the configuration set up so:

server{ listen 80; server_name [ your domain name (without square brackets) ]; location / { proxy_pass http://[ IP address of the path (without the brackets) ]:80; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } }
0 like 0 dislike
Usually, if I am not mistaken 1 in the domain is equal to the 1st IP address.
Crooked the decision to split the domains by using different non-standard ports:
Of course https can be similar, but not the fact that it is right.
110,608 questions
257,186 answers
33,947 users