You are not logged in.

#1 2012-09-10 13:22:08

steelbak
Member
Registered: 2011-02-27
Posts: 19
Website

Domain names. Hosted and my virtual environment.

I'm not even sure how to ask this question...

I want to be able to run multiple web servers and services on virtual machines running in VirtualBox on my Mint desktop. I have an E3000 router connected to my machine.

I want to be able to access these servers (http) and services (ssh) from inside and outside my LAN, hopefully from the inside even when I don't have access to the internet.

For example:
I have farrierservices.net hosted, and have dev.farrierservices.net running on an ArchLinux web server running in VirtualBox.

From my host's DNS management, I can point the name to my IP and use port forwarding on my router to serve the subdomain from my IP address.

I want a setup for each domain in its own virtual web server like above. How in the world would I resolve the domain names?

Last edited by steelbak (2012-09-10 13:23:58)

Offline

#2 2012-09-10 13:34:12

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Domain names. Hosted and my virtual environment.

Routing tables can't do this by themselves. One of the VMs (or your host) needs to run a server to proxy requests based on the hostname. You can use apache + mod_proxy or some dedicated tool like pound.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2012-09-10 14:21:00

steelbak
Member
Registered: 2011-02-27
Posts: 19
Website

Re: Domain names. Hosted and my virtual environment.

Thank you, I am looking it up.

Offline

#4 2012-09-11 10:14:19

steelbak
Member
Registered: 2011-02-27
Posts: 19
Website

Re: Domain names. Hosted and my virtual environment.

I read all I could find about them. It appears they both funnel just http requests. I really want ssh connections to those vms too. It seems like I need to have a DNS server maybe on my host system?

Offline

#5 2012-09-11 14:32:01

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Domain names. Hosted and my virtual environment.

In the general case, that isn't possible. It is possible with HTTP because HTTP includes a Host header but SSH doesn't have something like this.

However, you can (usually) assign multiple IP addresses to a single card. So if you can get your hands on multiple public IP addresses, you can do this at the IP level and give each VM its own IP.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2012-09-12 11:17:29

steelbak
Member
Registered: 2011-02-27
Posts: 19
Website

Re: Domain names. Hosted and my virtual environment.

Dang.

My current work around is to ssh into my host system and negotiate around from there. That's simple when it's only me. I guess I can set up other user accounts and carefully limit them for the few other people that want to use this system.

So maybe I will just do that and play around with virtual hosts and the tools you mentioned.

Thank you for your time. I seem to have an obsession about this, so I'm sure I will bang my head about it more in the future, but moving on for now smile

Offline

Board footer

Powered by FluxBB