diff options
| -rw-r--r-- | personal_infra/puppet/site/h1.pdp7.net.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/personal_infra/puppet/site/h1.pdp7.net.pp b/personal_infra/puppet/site/h1.pdp7.net.pp index f0ec35a8..0bdb5b97 100644 --- a/personal_infra/puppet/site/h1.pdp7.net.pp +++ b/personal_infra/puppet/site/h1.pdp7.net.pp @@ -132,4 +132,25 @@ node 'h1.pdp7.net' { enable => true, ensure => running, } + + file {"/etc/apache2/sites-enabled/morera79.pdp7.net.conf": + content => @("EOT") + MDomain morera79.pdp7.net + + <VirtualHost *:80> + ServerName morera79.pdp7.net + Redirect permanent / https://morera79.pdp7.net/ + </VirtualHost> + + <VirtualHost *:443> + ServerName morera79.pdp7.net + SSLEngine on + Alias / /bogus + ErrorDocument 403 "<html><body>Conservo lo que había aquí, escríbeme a alex arroba corcoles punto net.</body></html>" + </VirtualHost> + | EOT + , + } + ~> + Service['apache2'] } |
