TurnKey Linux Virtual Appliance Library

What is the best way to use more than one virtual machine on the same box

E.g I want to use both twiki and trac and joomla (please, just suppose) , and I have only one real (windows?) PC. And I want to use TK appliances for both.

And all addresses below should work.

http://mysite/twiki

http://mysite/joomla

http://mysite/trac

I think I can install an other apache that will rewrite real ip addresses and ports according to urls?

 

thanks a lot

Alon Swartz's picture

Why not use subdomains?

Its technically possible (but error prone) to do what you are proposing. An easier way would be to use subdomains, and point them to the relevant appliance, for example:
http://twiki.mysite.com
http://joomla.mysite.com
http://trac.mysite.com

Thanks for the quick answer!

Thanks for the quick answer! How can I set up subdomains though? Through webmin? Do I need a DNS?


Alon Swartz's picture

mainly depends on your network configuration

Well, it mainly depends on your network configuration, and what your objective is.

LAN access
If you want to provide access to computers on your LAN, you can either configure their hosts files, or use DNS internally.

Internet access
If you want to provide access to the VM's from the internet, you need to setup DNS A records, assuming the VM IP addresses are accessible from the internet.

If this is not the case, and you have NAT'ed connection, its more complicated, and you might need to go with your original idea of using a proxy if the url is important. On the other hand, it might be simpler to configure your router to listen on different ports and forward them to the relevant IP, for example:
http://router_ip:81 -> twiki_ip
http://router_ip:82 -> joomla_ip
http://router_ip:83 -> trac_ip
The more information you can provide, the easier it will be to help.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)