How to assign domains to virtuallock proxmox?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
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: site1.ru, site2.ru, site3.ru.
When entering the site1.ru open one dev, while calling on site2.ru - 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 site.ru to make a subdomain (sub.site.ru) and place it in the container (proxmox). Tell me how to configure dns, that would at sub.site.ru, 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 | 13 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; } }
by
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:
site1.ru
site1.EN:81
site3.EN:82
Of course https can be similar, but not the fact that it is right.
by
110,608 questions
257,186 answers
0 comments
36,596 users