Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Beginner General Networking Question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 dantesinferno   Members   -  Reputation: 100

Like
0Likes
Like

Posted 21 January 2012 - 11:33 PM

So for various reasons I am running multiple virtual machines on my computer in vbox (Host pc is ubuntu)
Each virtual machine is used for different things... I have one for personal sites, and ones for various side projects.
I keep the code and configuration completely separate.

Now through what I use currently with bridged networking each one gets it's own IP address with the router forwarding different ports to different IPs.

But what if I want to use the same port(80) for multiple virtual machines and have the request directed to the appropriate virtual machine IP based on hostname (Similar to apache virtual hosts)

Could I set up apache on my host (ubuntu) machine to redirect to one of these virtual machines' IP addresses based on host name?

Thank you in advance.

dantesinferno

Sponsor:

#2 Net Gnome   Members   -  Reputation: 773

Like
1Likes
Like

Posted 22 January 2012 - 09:42 AM

Basically, you want to use port forwarding to accomplish this. Apache should be able to do the port forwarding to the IP:PORT of your choice. That is assuming you are using different IPs for each of your VMs in your virtual network on your virtual host. if you're not, you'll probably want to set it up that way so you can.

#3 dantesinferno   Members   -  Reputation: 100

Like
0Likes
Like

Posted 22 January 2012 - 01:26 PM

I'll mess with it a little later and see if I can get it working. Thanks for your reply.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS