]> xn--ix-yja.es Git - alex.git/commitdiff
Add morera79.pdp7.net static message
authoralex <alex@pdp7.net>
Sat, 17 Feb 2024 19:00:42 +0000 (20:00 +0100)
committeralex <alex@pdp7.net>
Sat, 17 Feb 2024 19:00:59 +0000 (20:00 +0100)
personal_infra/puppet/site/h1.pdp7.net.pp

index f0ec35a8838cbe6635d365bd2d3b980827255d3f..0bdb5b9754d4b5e889d04a5bc30c013bbcc8afa2 100644 (file)
@@ -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&iacute;a aqu&iacute;, escr&iacute;beme a alex arroba corcoles punto net.</body></html>"
+      </VirtualHost>
+      | EOT
+    ,
+  }
+  ~>
+  Service['apache2']
 }