Ask Your Question
1

Automatic Virtual Hosts

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

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 websiteone.company.local. 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
1

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

ramindk gravatar image

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

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.

*.webdev.example.com IN CNAME webdev01.example.com.

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

edit flag offensive delete link more

Comments

This is it, it was done via mod_vhost_alias.

Jeremy1026 gravatar imageJeremy1026 ( 2015-08-24 15:41:01 -0500 )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

Stats

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

Seen: 50 times

Last updated: Aug 21 '15