OpenVZ Containers and ports for domains [message #49509] |
Thu, 09 May 2013 03:07 |
pol25
Messages: 5 Registered: May 2013
|
Junior Member |
|
|
Hi everybody it´s my first post here
I install proxmox and create 2 containers with OpenVZ , in each container use centos 6.3 and install zpanelx in one case and in other ispconfig for try , all ok i use ip forward for redirect by port and access each container
For example for access the container 1 with zpanel put 34.555.44.33:1080 and in the other case the same ip and with different port for access to the other control panel ispconfig , all working over NAT
Ok the problem it´s how i can add domains , because into DNS i ca´nt add port ..... and my problem it´s this if i have different containers and use the same ip how i can manage different OS in each container and for example add domains , etc for each control panel
I read something about reverse proxy and other things but i supose here sure can tell me something more about this
Sure exists the way for redirect to private ip from ip fixed and in this case to container and works all but i don´t know how i can this
Regards and thankñ´s for the help
|
|
|
Re: OpenVZ Containers and ports for domains [message #49519 is a reply to message #49509] |
Fri, 10 May 2013 05:26 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
yes, you can use reverse proxy for http, otherwise get more ip addresses.
for control panels I don't see any problem as long as they are on different ports.
if you want to have same control panel in different CT, just use different port in each CT.
|
|
|
|
Re: OpenVZ Containers and ports for domains [message #49521 is a reply to message #49509] |
Fri, 10 May 2013 06:00 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
if you want to use http port for all domains you have to use reverse proxy.
do it in one of CT, or create 3'rd CT, install nginx or apache and than in this CT setup proxying.
it's nothing to do with domains, it's about one port (tcp/80).
|
|
|
|
Re: OpenVZ Containers and ports for domains [message #49524 is a reply to message #49522] |
Fri, 10 May 2013 07:10 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
1. there is no possibility in DNS to tell which port to use.
dns name just tells which host to access.
port is what service to access on that host, as example 80/tcp port typically means http service
2. please read my answers. I already told you what to do
3. you can always redirect connection to some port to CT with iptables. than you can access needed service some_domain.com:some_port
4. if you don't understand how things works (dns, services and etc) please read manuals and books. your problem is not related to openvz.
|
|
|
|
Re: OpenVZ Containers and ports for domains [message #49526 is a reply to message #49525] |
Fri, 10 May 2013 07:23 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
pol25 wrote on Fri, 10 May 2013 10:15yes i understand but for works domains in each case i need add rules to iptables if i want use NAT with containers when i add domain also i need add rules to iptables for this domain , right ? because i create the rules for containers and works with ports , but no for domains , that´s only
Thank´s
no, you are not right.
dns only tells which host to access. nothing more.
with iptables you create rules only for ip and port. nothing more.
|
|
|
Re: OpenVZ Containers and ports for domains [message #49527 is a reply to message #49526] |
Fri, 10 May 2013 07:30 |
pol25
Messages: 5 Registered: May 2013
|
Junior Member |
|
|
Yes understand , and can you tell me please if i can see for some solution for insert domain and this automac appoint the control panel install in container , and using the same ip load this domain , sure if you understand i try to do sure you can tell me some solution for i can investigate more and create solution , because when launch domain by DNS go to ip no port ok , but when receive this domain in this ip if it´s possible redirect this domain how i can do because the domain add into containers and into de contol panel of ispconfig no into the server , the real server
Thanks for yout help other time
|
|
|