Mercurial > repos > other > Puppet
view modules/apache/tests/vhost_ssl.pp @ 106:ef0926ee389a puppet-3.6
Lock down Apache headers for security, based on https://securityheaders.io/
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 May 2016 17:10:10 +0100 |
parents | 956e484adc12 |
children |
line wrap: on
line source
## SSL-enabled vhosts # SSL-enabled vhosts respond only to HTTPS queries. # Base class. Turn off the default vhosts; we will be declaring # all vhosts below. class { 'apache': default_vhost => false, } # Non-ssl vhost apache::vhost { 'first.example.com non-ssl': servername => 'first.example.com', port => '80', docroot => '/var/www/first', } # SSL vhost at the same domain apache::vhost { 'first.example.com ssl': servername => 'first.example.com', port => '443', docroot => '/var/www/first', ssl => true, }