diff options
| author | alex <alex@pdp7.net> | 2024-02-17 20:00:42 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-02-17 20:00:59 +0100 |
| commit | afd6125b952b184c7ad0d9556a2d1ebb203acdd6 (patch) | |
| tree | 8cbd7542e6c4eacdacaa5d1fc622b3c103b18ff4 | |
| parent | 546c45de40c5dc799d65c6c60ceb7085e069ea0f (diff) | |
Add morera79.pdp7.net static message
| -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'] } |
