You are not logged in.
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
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.
Offline
Thank you, I am looking it up.
Offline
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
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.
Offline
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 ![]()
Offline