Application of bridged mode

aub

New Member
Sep 13, 2010
11
0
1
Hello, got a question on bridged mode openVZ setups:

When I setup a hostname like test.domain.com and point that A record to the domain through which Proxmox is reached, shouldn't Proxmox route the request to the openVZ container I set up? Why do I still get sent to the Proxmox admin login mask?



bridged_dns.jpgbridged_network.jpg
 
First of all - an A record will always point to a IP(v4) address, not a different domain. The DNS system is used to translate domain names into IP addresses which the asking application will then use to connect to the destination in question.

Bridged means that if you give the container a different IP address, the physical network interface of your server that is being bridged will accept connections for this IP and put them through to the container.

If you want to access a webserver running on a container using any subdomain that is being resolved to the IP address of the proxmox box, you need the apache module mod_proxy on the proxmox server and set it up to proxy incoming connections for that subdomain and forward the request to the container (which does need to have some internal IP address for this to work)
A procedure like that only works for http/https traffic since that is being handled by apache. And the only reason why this works at all is because the http procotol contains information which subdomain is being contacted, even if they all resolve to the same IP address. Basically, your browser resolves the IP address for test.domain.com and gets 1.2.3.4 as a response. The browser will then contact 1.2.3.4 which so happens to be the proxmox server. The apache2 service on the proxmox server will then say "oh hey he contacted me, but he wants to see the webpage being hosted as test.domain.com, so I need to forward his request...".

If that explanation was too thorough and you knew most of it - Im sorry.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!