Apache2 plan which creates any number of VirtualHosts.
Created for Vagrant project https://github.com/kevinhead/vagrant-up
- creates self-signed tls cert
- generates virtualhost conf (https only)
- generates index.html
- adds hosts entry
- reloads apache2 service
module "foo_site" {
source = "modules/vhost"
server_name = "foo.com"
}