Ask Your Question

Automatic Virtual Hosts

asked 2015-08-20 14:31:25 -0600

Jeremy1026 gravatar image

Not totally sure the proper way to phrase this question so I'm going to lay out a bunch of information:

I used to work at a place that used puppet for managing development environments. We had it set up so that every folder in ~/Development/ would point to a unique local domain. So if you added a folder called websiteone you'd automatically be able to access it at Does anyone know how this was accomplished? Unfortunately, I no longer keep in contact with the people at that company so I can't just asked them for their set up. Any help would be greatly appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-21 15:43:07 -0600

ramindk gravatar image

updated 2015-08-21 23:56:08 -0600

This may have been generated from a list of vhosts or directories by Puppet, but I think it would be simpler to use a DNS wildcards and dynamic vhosts. Also if it went live as soon as a directory was added I would assume Puppet was not involved directly.


Then have that machines use mod_vhost_alias to point to the directories.

edit flag offensive delete link more


This is it, it was done via mod_vhost_alias.

Jeremy1026 gravatar imageJeremy1026 ( 2015-08-24 15:41:01 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-08-20 14:31:25 -0600

Seen: 53 times

Last updated: Aug 21 '15