Skip to content

kevinhead/terraform-apache2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Apache2

Overview

Apache2 plan which creates any number of VirtualHosts.

Notes

Created for Vagrant project https://github.com/kevinhead/vagrant-up

Module (modules/vhost)

- creates self-signed tls cert
- generates virtualhost conf (https only)
- generates index.html
- adds hosts entry
- reloads apache2 service

Usage

    module "foo_site" {
        source = "modules/vhost"
  
        server_name = "foo.com"
    }