3

I've configured a virtual machine for use as a web development platform to distribute to web developers in my company. Currently, I have the install script for each site creating a new virtual host on a new port so we can use root level links on the sites correctly. Each site has a link that looks like: http://192.168.1.100:8080/, http://192.168.1.100:8081/, etc. These addresses are difficult to remember for me and I certainly don't want to ask others keep ports mapped to sites in their heads. I would really like to create a new local network scoped name for each virtual host and broadcast its presence with something like NetBIOS or Bonjour or both so the host machine won't have to be configured to use the network name.

In short, I want to dynamically create new local network names to point to various Apache virtual hosts on a virtual machine that will be platform ambiguous so the host operating system can be Windows, OS X, or Linux. All configuration should be done on the virtual machine so that the host will require zero configuration.

1
  • Should I repost over on ServerFault? May 4, 2011 at 15:49

1 Answer 1

0

This would be relatively simple if you can get a wildcard DNS entry (*.test.example.com). Then you could modify your virtual host creation script to create new sites based on name rather than port number.

2
  • Ok, if I create a wildcard A record on my name server for something like *.testing.example.com., how would I map it back to the virtual machine that is only accessible inside the local area network? May 4, 2011 at 16:46
  • @Jonathan Swinney you could have a local dns setup which can handle this for you
    – datatoo
    Jun 22, 2011 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .